Skip to content

CDsampling

0.1.6

Constrained Sampling in Paid Research Studies

0packages depend
2.5Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Yifei HuangFirst published 2024-10-077 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.5K
CRAN downloads in the past year
Rank #15,852 · ~7/day · ~209/mo
Daily download trend is not available in this view yet.
17730 days
66290 days
2.5K1 year
Compare downloads with other packages →
Also on299 r2u18 autocran

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.6Latest
    2025-04-05 · current release · diff ↗
  • 0.1.5
    2025-03-30 · diff ↗
  • 0.1.4
    2025-01-11 · diff ↗
  • 0.1.3
    2025-01-08 · diff ↗
  • 0.1.2
    2024-11-19 · diff ↗
  • 0.1.1
    2024-10-13 · diff ↗
  • 0.1.0
    2024-10-07
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-10-07
Total releases
7 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
2.2 KB / 2 files
Download size
55 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("CDsampling")
Huang, Y., Tong, L., & Yang, J. (2025). CDsampling: Constrained Sampling in Paid Research Studies (Version 0.1.6) [Computer software]. https://doi.org/10.32614/CRAN.package.CDsampling

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CDsampling version 0.1.6 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy