View source: R/compare_methods_oracle.R
describe_data | R Documentation |
This utility function gives various summary statistics (at the block level) for a dataset with all potential outcomes given.
describe_data(data, Y0 = "Y0", Y1 = "Y1", Z = "Z", sid = "sid")
data |
Dataframe with defined Y0, Y1 (the potential outcomes), Z (sample treatment assignment vector), and sid (a categorical blocking variable). |
Y0 |
name of Y0 column |
Y1 |
name of Y1 column |
Z |
example vector of treatment assignment that allows for calculation of proportion treated and so forth. |
sid |
Name of the block ID column in the dataframe. |
(invisible) the summary stats by block. Side effect of printing to screen the description of the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.