Description Usage Arguments Examples
View source: R/ftest_function.R
This function computes the f-test p-value for baseline characteristics between treatment and control.
1 | ftest_fn(sourcefile, varlist, assignvar)
|
sourcefile |
is your dataframe, should include a variable for treatment assignment and whatever demographics. |
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". |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.