mergeTimeVaryingCovariates: Merge time-varying covariates into a single data frame. This...

View source: R/covariate.R

mergeTimeVaryingCovariatesR Documentation

Merge time-varying covariates into a single data frame. This last data frame will be merged afterwards with all treatment and observation rows.

Description

Merge time-varying covariates into a single data frame. This last data frame will be merged afterwards with all treatment and observation rows.

Usage

mergeTimeVaryingCovariates(covariates, ids_within_arm, arm_offset)

Arguments

covariates

covariates, only time-varying covariates will be extracted

ids_within_arm

ids within the current arm being sampled

arm_offset

arm offset (in term of ID's)

Value

a data.frame


campsis documentation built on Oct. 13, 2023, 5:09 p.m.