completeCov {NMsim} | R Documentation |
Expand a set of covariate values into a data.set with reference value
Description
Expand a set of covariate values into a data.set with reference value
Usage
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)
[Package NMsim version 0.2.4 Index]