View source: R/compare_methods_oracle.R
compare_methods_oracle | R Documentation |
This method is for simulaton studies where we know all the potential outcomes.
compare_methods_oracle(Y0, Y1, B, data = NULL, p_mat = NULL)
Y0 |
Vector of control potential outcomes (or name of column in data holding same). |
Y1 |
Vector of treatment potential outcomes (or name of column in data holding same). |
B |
block ids (or name of column in data holding same). |
data |
alternatively is matrix of Y,Z,B |
p_mat |
Data.frame with exactly two columns, and one row per block. First column is the categorical covariate denoting blocks, with same levels as in B, above. Second column is proportion treated in that block. |
Function that returns some variance function estimates based on all potential outcomes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.