Find the radius of a prentice
,
fisheretal
, chang
, zhang
and
bayesCR
.
region(x, method, type, estimator, alp = NULL, ...)# S3 method for Q4
region(x, method, type, estimator, alp = NULL, ...)
# S3 method for SO3
region(x, method, type, estimator, alp = NULL, ...)
character string specifying which type of interval to report, "bayes", "transformation" or "direct" based theory.
character string, "bootstrap" or "asymptotic" are available. For Bayes regions, give the type of likelihood: "Cayley","Mises" or "Fisher."
character string either "mean" or "median." Note that not all method/type combinations are available for both estimators.
the alpha level desired, e.g. 0.05 or 0.10.
additional arguments that are method specific.
For frequentist regions only the radius of the confidence region centered at the specified estimator is returned. For Bayes regions the posterior mode and radius of the credible region centered at that mode is returned.
# NOT RUN {
Rs <- ruars(20, rvmises, kappa = 10)
# Compare the region sizes that are currently available
region(Rs, method = "transformation", type = "asymptotic", estimator = "mean", alp = 0.1)
region(Rs, method = "transformation", type = "bootstrap", estimator = "mean",
alp = 0.1, symm = TRUE)
region(Rs, method = "direct", type = "bootstrap", estimator = "mean", alp = 0.1, m = 100)
region(Rs, method = "direct", type = "asymptotic", estimator = "mean", alp = 0.1)
# }
# NOT RUN {
region(Rs, method = "Bayes", type = "Mises", estimator = "mean",
S0 = mean(Rs), kappa0 = 10, tuneS = 5000, tuneK = 1, burn_in = 1000, alp = .01, m = 5000)
# }
Run the code above in your browser using DataLab