Learn R Programming

NMsim (version 0.1.6)

completeCov: 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

Run this code
    NMsim:::completeCov(covlist=list(covvar="WEIGHTB",values=c(30,60,90),ref=50),sigdigs=3)

Run the code above in your browser using DataLab