Learn R Programming

campsis (version 1.7.0)

sampleTimeVaryingCovariates: Sample time-varying covariates.

Description

Sample time-varying covariates.

Usage

sampleTimeVaryingCovariates(object, armID, needsDV)

Value

a data.frame

Arguments

object

time-varying covariates, data.frame form

armID

treatment arm ID

needsDV

append extra column DV, logical value