Description Usage Arguments Value
View source: R/procFunctions.R
This is an internal function extracting the variable names from the formula to modify the data.frame given so that the formatted variable names are used in the code inside.
1 | reformatFormula(fml, dataOrigin, treatment, posttreat, cluster = "")
|
fml |
a formula object |
dataOrigin |
a data.frame object, original dataset |
treatment |
a string, containing treatment variable varname string |
posttreat |
a string, containing post-treatment variable varname string |
cluster |
a string, containing cluster variable varname. Default is "" which means either its mean process or not clustered. |
a data.frame which contains covariates W, treatment T, posttreat D, and the outcome Y as well as the cluster.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.