data(exdata04)
ttemsm( Y ~ A + L1 + time + I(time^2) + trial,
data = exdata04, id = ID, weight = w_pp,
eform = TRUE, cl = 0.95, var.method="standard")
# Pooled logistic regression for target trial emulation
ttemsm( Y ~ A + L1 + time + I(time^2) + trial,
data = exdata04, id = ID, weight = w_pp,
eform = TRUE, cl = 0.95, var.method="MBN")
# Pooled logistic regression for target trial emulation
# Morel-Bokossa-Neerchaal-type corrected SE estimator is used.
Run the code above in your browser using DataLab