completeCov function

Expand a set of covariate values into a data.set with reference value

Expand a set of covariate values into a data.set with reference value

completeCov(covlist, data, col.id = "ID", sigdigs = 2)

Arguments

  • covlist: A covariate specififed in a list. See ?expandCovLists.
  • data: See ?expandCovLists.
  • col.id: The subject ID column name. Necessary because quantiles sould be quantiles of distribution of covariate on subjects, not on observations (each subject contributes once).
  • sigdigs: Used for rounding of covariate values if using quantiles or if using a function to find reference.

Examples

NMsim:::completeCov(covlist=list(covvar="WEIGHTB",values=c(30,60,90),ref=50),sigdigs=3)
  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2025-03-13