Description Usage Arguments Examples
View source: R/function_totanditt.R
This function computes multiple ITT and TOT models at once. Produces robust standard errors.
1 | itt_tot_model(sourcefile, I, varlist, assignvar, treatvar, weight = NULL)
|
sourcefile |
is your dataframe, should include a variable for treatment assignment and whatever demographics. |
I |
is the outcome being predicted. |
varlist |
is a vector of your covariates (things you are controlling for)- all should be the names of columns in your dataset. |
assignvar |
is the specific column that specifies the treatment/control split in your sample. Also, your blocking variable should be "blocknum". |
treatvar |
is the column specifying actual treatment dosage regardless of assignment. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.