# Every replication simulates two full groups of subjects, fits a slope
# for each subject, and forms a confidence interval on the difference in
# mean slopes. G = 20 keeps the example quick; a reported sensitivity
# study deserves the default G = 1000. With the planning values equal to
# the population values, the realized mean width should sit at or just
# under the target.
set.seed(113)
ss_aipe_pcm_sensitivity(
true_variance_trend = 0.003, true_error_variance = 0.0262,
estimated_variance_trend = 0.003, estimated_error_variance = 0.0262,
duration = 4, frequency = 1, width = 0.05,
G = 20, print_iter = FALSE
)
Run the code above in your browser using DataLab