###***### EXAMPLE 1 ###***###
# get the Monte Carlo standard error and the
# accuracy (i.e., delta) for given R = 10000
# using the default two-sided alternative hypothesis,
# the default confidence level (conf.level = 0.95),
# and the default significance level (sig.level = 0.05)
mcse(R = 10000)
# se = 0.0016
# delta = 0.1224
###***### EXAMPLE 2 ###***###
# get the Monte Carlo standard error and the
# number of resamples (i.e., R) for given delta = 0.01
# using a one-sided alternative hypothesis,
# the default confidence level (conf.level = 0.95),
# and the default significance level (sig.level = 0.05)
mcse(delta = 0.1, alternative = "one.sided")
# se = 0.0026
# R = 7299
Run the code above in your browser using DataLab