{
  "_id": "6a103547acfb0bcc41c99a07",
  "Package": "CDsampling",
  "Type": "Package",
  "Title": "Constrained Sampling in Paid Research Studies",
  "Version": "0.1.6",
  "Authors@R": "c(person(given = \"Yifei\",\nfamily = \"Huang\",\nrole = c(\"aut\", \"cre\"),\nemail = \"yhuan39@uic.edu\"),\nperson(given = \"Liping\",\nfamily = \"Tong\",\nrole = \"aut\"),\nperson(given = \"Jie\",\nfamily = \"Yang\",\nrole = \"aut\"))",
  "Maintainer": "Yifei Huang <yhuan39@uic.edu>",
  "Description": "In the context of paid research studies and clinical\ntrials, budget considerations and patient sampling from\navailable populations are subject to inherent constraints. We\nintroduce the 'CDsampling' package, which integrates optimal\ndesign theories within the framework of constrained sampling.\nThis package offers the possibility to find both D-optimal\napproximate and exact allocations for samplings with or without\nconstraints. Additionally, it provides functions to find\nconstrained uniform sampling as a robust sampling strategy with\nlimited model information. Our package offers functions for the\ncomputation of the Fisher information matrix under generalized\nlinear models (including regular linear regression model) and\nmultinomial logistic models.To demonstrate the applications, we\nalso provide a simulated dataset and a real dataset embedded in\nthe package. Yifei Huang, Liping Tong, and Jie Yang\n(2025)<doi:10.5705/ss.202022.0414>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-12 07:21:58 UTC",
    "User": "root"
  },
  "Author": "Yifei Huang [aut, cre], Liping Tong [aut], Jie Yang [aut]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-04-05 15:20:11 UTC",
  "RemoteUrl": "https://github.com/cran/CDsampling",
  "RemoteRef": "HEAD",
  "RemoteSha": "8fbda2fddb836c4abd41ebfdc463673570fbef13",
  "MD5sum": "44f32a41619cc116b962dd887ee4ca71",
  "_user": "cran",
  "_type": "src",
  "_file": "CDsampling_0.1.6.tar.gz",
  "_fileid": "e6fcf701c6018d54786a35ac523490add5387a6a873d9d64e99431a10a9c5625",
  "_filesize": 241969,
  "_sha256": "e6fcf701c6018d54786a35ac523490add5387a6a873d9d64e99431a10a9c5625",
  "_created": "2026-05-12T07:21:58.000Z",
  "_published": "2026-05-22T10:51:51.765Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77365133021,
      "time": 126,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938088495"
    },
    {
      "job": 77365133340,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938087079"
    },
    {
      "job": 77365132857,
      "time": 167,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938052430"
    },
    {
      "job": 77365132584,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158749081"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/25719637210",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/CDsampling",
  "_commit": {
    "id": "8fbda2fddb836c4abd41ebfdc463673570fbef13",
    "author": "Yifei Huang <yhuan39@uic.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.6\n",
    "time": 1743866411
  },
  "_maintainer": {
    "name": "Yifei Huang",
    "email": "yhuan39@uic.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "lpSolve",
      "role": "Imports"
    },
    {
      "package": "Rglpk",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 223,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/CDsampling"
  },
  "_searchresults": 3,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/CDsampling.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-10-07"
    },
    {
      "version": "0.1.1",
      "date": "2024-10-13"
    },
    {
      "version": "0.1.2",
      "date": "2024-11-19"
    },
    {
      "version": "0.1.3",
      "date": "2025-01-08"
    },
    {
      "version": "0.1.4",
      "date": "2025-01-11"
    },
    {
      "version": "0.1.5",
      "date": "2025-03-30"
    },
    {
      "version": "0.1.6",
      "date": "2025-04-05"
    }
  ],
  "_exports": [
    "approxtoexact_constrained_func",
    "approxtoexact_func",
    "bounded_uniform",
    "F_func_GLM",
    "F_func_MLM",
    "Fdet_func_GLM",
    "Fdet_func_MLM",
    "Fdet_func_unif",
    "Fi_func_MLM",
    "iset_func_trauma",
    "iset_func_trial",
    "liftone_constrained_GLM",
    "liftone_constrained_MLM",
    "liftone_GLM",
    "liftone_MLM",
    "W_func_GLM"
  ],
  "_datasets": [
    {
      "name": "trauma_data",
      "title": "Trauma data with multinomial response",
      "object": "trauma_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Severity",
        "Dose",
        "Label",
        "Outcome",
        "ID"
      ],
      "rows": 802,
      "table": true,
      "tojson": true
    },
    {
      "name": "trial_data",
      "title": "Generated clinical trial data with binary response",
      "object": "trial_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "gender",
        "age_1",
        "age_2",
        "label",
        "Y",
        "ID"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "approxtoexact_constrained_func",
      "title": "Convert the approximate allocation (proportion) to exact allocation (integer) with bounded constraint (ni <= Ni)",
      "topics": [
        "approxtoexact_constrained_func"
      ]
    },
    {
      "page": "approxtoexact_func",
      "title": "Convert the approximate allocation (proportion) to exact allocation (integer) without constraint",
      "topics": [
        "approxtoexact_func"
      ]
    },
    {
      "page": "bounded_uniform",
      "title": "Find (constrained) uniform exact allocation of the study for bounded design",
      "topics": [
        "bounded_uniform"
      ]
    },
    {
      "page": "F_func_GLM",
      "title": "Fisher information matrix of generalized linear model (GLM)",
      "topics": [
        "F_func_GLM"
      ]
    },
    {
      "page": "F_func_MLM",
      "title": "The Fisher information matrix of multinomial logistic model (MLM)",
      "topics": [
        "F_func_MLM"
      ]
    },
    {
      "page": "Fdet_func_GLM",
      "title": "Determinant of Fisher information matrix for GLM",
      "topics": [
        "Fdet_func_GLM"
      ]
    },
    {
      "page": "Fdet_func_MLM",
      "title": "Determinant of Fisher information matrix of multinomial logistic model (MLM)",
      "topics": [
        "Fdet_func_MLM"
      ]
    },
    {
      "page": "Fdet_func_unif",
      "title": "Determinant function to be used for finding constrained uniform samplings",
      "topics": [
        "Fdet_func_unif"
      ]
    },
    {
      "page": "Fi_func_MLM",
      "title": "Generate Fisher information matrix F_x at a design point x_i for Multinomial logistic regression model",
      "topics": [
        "Fi_func_MLM"
      ]
    },
    {
      "page": "iset_func_trauma",
      "title": "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()",
      "topics": [
        "iset_func_trauma"
      ]
    },
    {
      "page": "iset_func_trial",
      "title": "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()",
      "topics": [
        "iset_func_trial"
      ]
    },
    {
      "page": "liftone_constrained_GLM",
      "title": "Find constrained D-optimal approximate design for generalized linear models (GLM)",
      "topics": [
        "liftone_constrained_GLM"
      ]
    },
    {
      "page": "liftone_constrained_MLM",
      "title": "Find constrained D-optimal designs for Multinomial Logit Models (MLM)",
      "topics": [
        "liftone_constrained_MLM"
      ]
    },
    {
      "page": "liftone_GLM",
      "title": "Unconstrained lift-one algorithm to find D-optimal allocations for GLM",
      "topics": [
        "liftone_GLM"
      ]
    },
    {
      "page": "liftone_MLM",
      "title": "Unconstrained lift-one algorithm to find D-optimal allocations for MLM",
      "topics": [
        "liftone_MLM"
      ]
    },
    {
      "page": "print.list_output",
      "title": "Print Method for list_output Objects",
      "topics": [
        "print.list_output"
      ]
    },
    {
      "page": "print.matrix_list",
      "title": "Print Method for matrix_list Objects",
      "topics": [
        "print.matrix_list"
      ]
    },
    {
      "page": "print.matrix_output",
      "title": "Print Method for matrix_output Objects",
      "topics": [
        "print.matrix_output"
      ]
    },
    {
      "page": "trauma_data",
      "title": "Trauma data with multinomial response",
      "topics": [
        "trauma_data"
      ]
    },
    {
      "page": "trial_data",
      "title": "Generated clinical trial data with binary response",
      "topics": [
        "trial_data"
      ]
    },
    {
      "page": "W_func_GLM",
      "title": "Calculate the diagonal elements nu of Fisher information matrix",
      "topics": [
        "W_func_GLM"
      ]
    }
  ],
  "_rundeps": [
    "lpSolve",
    "Rglpk",
    "slam"
  ],
  "_vignettes": [
    {
      "source": "Intro_to_CDsampling.Rmd",
      "filename": "Intro_to_CDsampling.html",
      "title": "Introduction to CDsampling",
      "author": "Y.H.",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Table of Contents",
        "Computation of Fisher information matrix",
        "Example 1: GLM Fisher information matrix",
        "Example 2: MLM Fisher information matrix",
        "Applications in paid research studies",
        "Example 3: trial_data & constrained sampling with GLM",
        "Example 4: trauma_data & constrained sampling with MLM",
        "References"
      ],
      "created": "2024-10-08 03:02:03",
      "modified": "2025-04-05 15:20:11",
      "commits": 7
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "cdsampling",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.6",
      "date": "2026-05-12T07:24:03.000Z",
      "distro": "noble",
      "commit": "8fbda2fddb836c4abd41ebfdc463673570fbef13",
      "fileid": "5f84e6c58e5a0eff271d658d47180bbd5c4046934fca0ff6f44ab9569c0b00ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25719637210"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.6",
      "date": "2026-05-12T07:23:59.000Z",
      "distro": "noble",
      "commit": "8fbda2fddb836c4abd41ebfdc463673570fbef13",
      "fileid": "a65d3e3849fdd4d318469310a42b73e43e9bfcc7681a8b818fb118e89a0d22a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25719637210"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.6",
      "date": "2026-05-22T10:51:36.000Z",
      "commit": "8fbda2fddb836c4abd41ebfdc463673570fbef13",
      "fileid": "49a574cb24767f47b2beb5b3dc90492d7c8e2dba3af8c795a354fba895e3d845",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25719637210"
    }
  ]
}