Estimate Bias
estimate_bias.Rd
Returns the bias based on the different parameters in the bias decomposition
Arguments
- rho
Correlation between the error in the weights and outcome
- R2
R2 measure for how much variation in the true weights is explained by the error term, must be bound on the range [0,1)
- weights
Vector of estimated weights
- sigma2
Estimated variance of the outcome (i.e., stats::var(Y) for obervational setting; stats::var(tau) for generalization setting)