compare_methods_oracle: Compare estimators using the true values (i.e., full schedule...

View source: R/compare_methods_oracle.R

compare_methods_oracleR Documentation

Compare estimators using the true values (i.e., full schedule of potential outcomes)

Description

This method is for simulaton studies where we know all the potential outcomes.

Usage

compare_methods_oracle(Y0, Y1, B, data = NULL, p_mat = NULL)

Arguments

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.

Details

Function that returns some variance function estimates based on all potential outcomes.


lmiratrix/blkvar documentation built on Nov. 18, 2024, 1:27 p.m.