GenerateData_SingA_TimeOrdL: GenerateData_SingA_TimeOrdL

View source: R/GenerateData_SingA_TimeOrdL.R

GenerateData_SingA_TimeOrdLR Documentation

GenerateData_SingA_TimeOrdL

Description

Simulate another longitudinal data set, with uncertain time ordering of baseline covariates and single intervention. Note that the data is of the following format: O=L1,L2,L3,L4,L5,L6,C1,D1,C1.2,LA1,Z1,LZ1,C2,D2,LA2,Z2,LZ2 ... Y L1,L2,L3,L4,L5 are baseline covariates accroding to time ordering, L6 is some randomized covariate (possibly intervention) LA and LZ time-varying covariates, C and D are censoring and death indicators, Z is a mediator and Y is the final outcome based on LZ.

Usage

GenerateData_SingA_TimeOrdL(n, end.time, abar = NULL, abar.prime = NULL)

Arguments

n

Sample size

end.time

Last time point

abar

Set intervention

abar.prime

Control intervention

Value

Returns a dataframe with simulated covariates as described in the description.


podTockom/medltmle documentation built on Aug. 9, 2022, 9:32 a.m.