View source: R/medltmle_HelperFun.R
ConvertToMainTerms | R Documentation |
Converts a general formula to a main terms formula and combine summary measures with baseline covariates. Ex: If working.msm is "Y ~ X1*X2", convert to "Y ~ -1 + S1 + S1 + S3 + S4" where S1 is 1 (intercept), S2 is X1, S3 is X2, S4 is X1:X2.
ConvertToMainTerms(data, msm, summary.measures, nodes)
data |
TO DO |
msm |
TO DO |
summary.measures |
TO DO |
nodes |
TO DO |
Returns main terms Marginal Structural Model, summary measures, beta names and baseline column names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.