Description Usage Arguments Value Examples
Takes in a data frame and changes the names of the treatment and outcome columns, and drops unnecessary ones.
1 2 | FormDataset(dataset, ignore.cols = NULL, out.col = NULL,
trt.col = NULL)
|
dataset |
The data frame we want to reform. |
ignore.cols |
The indices of the columns we want to drop. Defaults to NULL. If set to NULL, no columns are dropped. |
out.col |
The index of the outcome column which will be renamed to 'Y'. Defaults to NULL. If set to NULL, no column will be renamed. |
trt.col |
The index of the treatment column which will be renamed to 'X'. Defaults to NULL. If set to NULL, no column will be renamed. |
A data frame with renamed the columns of treatment and outcome, and no longer includes some of the columns.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.