Package: CDsampling 0.1.2

Yifei Huang

CDsampling: 'CDsampling': Constraint Sampling in Paid Research Studies

In the context of paid research studies and clinical trials, budget considerations and patient sampling from available populations are subject to inherent constraints. We introduce the 'CDsampling' package, which integrates optimal design theories within the framework of constrained sampling. This package offers the possibility to find both D-optimal approximate and exact allocations for samplings with or without constraints. Additionally, it provides functions to find constrained uniform sampling as a robust sampling strategy with limited model information. Our package offers functions for the computation of the Fisher information matrix under generalized linear models (including regular linear regression model) and multinomial logistic models.To demonstrate the applications, we also provide a simulated dataset and a real dataset embedded in the package. Yifei Huang, Liping Tong, and Jie Yang (2025)<doi:10.5705/ss.202022.0414>.

Authors:Yifei Huang [aut, cre], Liping Tong [aut], Jie Yang [aut]

CDsampling_0.1.2.tar.gz
CDsampling_0.1.2.tar.gz(r-4.5-noble)CDsampling_0.1.2.tar.gz(r-4.4-noble)
CDsampling_0.1.2.tgz(r-4.4-emscripten)CDsampling_0.1.2.tgz(r-4.3-emscripten)
CDsampling.pdf |CDsampling.html
CDsampling/json (API)

# Install 'CDsampling' in R:
install.packages('CDsampling', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • trauma_data - Trauma data with multinomial response
  • trial_data - Generated clinical trial data with binary response

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.30 score 2 scripts 191 downloads 16 exports 3 dependencies

Last updated 1 months agofrom:bc340e24d4. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-linuxOKNov 20 2024

Exports:approxtoexact_constrained_funcapproxtoexact_funcbounded_uniformF_func_GLMF_func_MLMFdet_func_GLMFdet_func_MLMFdet_func_unifFi_func_MLMiset_func_traumaiset_func_trialliftone_constrained_GLMliftone_constrained_MLMliftone_GLMliftone_MLMW_func_GLM

Dependencies:lpSolveRglpkslam

Introduction to CDsampling

Rendered fromIntro_to_CDsampling.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-11-19
Started: 2024-10-08

Readme and manuals

Help Manual

Help pageTopics
Convert the approximate allocation (proportion) to exact allocation (integer) with bounded constraint (ni <= Ni)approxtoexact_constrained_func
Convert the approximate allocation (proportion) to exact allocation (integer) without constraintapproxtoexact_func
Find (constrained) uniform exact allocation of the study for bounded designbounded_uniform
Fisher information matrix of generalized linear model (GLM)F_func_GLM
The Fisher information matrix of multinomial logistic model (MLM)F_func_MLM
Determinant of Fisher information matrix for GLMFdet_func_GLM
Determinant of Fisher information matrix of multinomial logistic model (MLM)Fdet_func_MLM
Determinant function to be used for finding constrained uniform samplingsFdet_func_unif
Generate Fisher information matrix F_x at a design point x_i for Multinomial logistic regression modelFi_func_MLM
trauma_data example (see Huang, Tong, Yang (2023)) specific function for finding index set that if allocation of that index add "1", the new allocation still falls within the constraint Used in approxtoexact_constrained_func()iset_func_trauma
trial_data example (see Huang, Tong, Yang (2023)) specific function for finding index set that if allocation of that index add "1", the new allocation still falls within the constraint Used in approxtoexact_constrained_func()iset_func_trial
Find constrained D-optimal approximate design for generalized linear models (GLM)liftone_constrained_GLM
Find constrained D-optimal designs for Multinomial Logit Models (MLM)liftone_constrained_MLM
Unconstrained lift-one algorithm to find D-optimal allocations for GLMliftone_GLM
Unconstrained lift-one algorithm to find D-optimal allocations for MLMliftone_MLM
Print Method for list_output Objectsprint.list_output
Print Method for matrix_list Objectsprint.matrix_list
Print Method for matrix_output Objectsprint.matrix_output
Trauma data with multinomial responsetrauma_data
Generated clinical trial data with binary responsetrial_data
Calculate the diagonal elements nu of Fisher information matrixW_func_GLM