completeCov: Expand a set of covariate values into a data.set with...

View source: R/completeCov.R

completeCovR 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)

NMsim documentation built on Nov. 2, 2024, 9:06 a.m.