# Monte Carlo sensitivity sweep; G is small here so the example runs quickly.
# Raise G (e.g., G = 1000 or more) for a stable sensitivity analysis.
set.seed(113)
ss_aipe_c_ancova_sensitivity(true_error_var_ancova=30,
est_error_var_ancova=30, rho=.2, mu_y=c(10,12,15,13), mu_x=2,
G=50, sigma_x=1.3, sigma_y=2, c_weights=c(1,0,-1,0), width=3)
ss_aipe_c_ancova_sensitivity(true_error_var_anova=36,
est_error_var_anova=36, rho=.2, est_rho=.2, G=50,
mu_y=c(10,12,15,13), mu_x=2, sigma_x=1.3, sigma_y=6,
c_weights=c(1,0,-1,0), width=3, assurance=NULL)
Run the code above in your browser using DataLab