Monte Carlo power for the PPI++ mean estimator
simulate_ppi_mean.RdMonte Carlo power for the PPI++ mean estimator
Arguments
- R
Integer, number of Monte Carlo draws.
- n
Labeled sample size.
- N
Unlabeled sample size.
- alpha
Two-sided test level.
- delta
Effect size \(\theta - \theta_0\).
- sigma_y2
Total variance of \(Y\).
- sigma_f2
Variance of \(f(X)\).
- cov_y_f
Covariance between \(Y\) and \(f(X)\).
- var_f
Variance of \(f(X)\) (optional, overrides
sigma_f2).- var_res
Residual variance \(Y - f(X)\).
- lambda
Optional user-specified blend weight.
- lambda_type
One of
"oracle","plugin", or"user".- moments
Optional list with entries for population moments.
- seed
RNG seed.
- family
A
stats::family()object (gaussian()orbinomial()).- theta0
Null hypothesis value \(\theta_0\).