Learn R Programming

BAEssd (version 1.0.1)

summary.BAEssd: Summarizing BAE Sample Size Calculations

Description

summary method for class BAEssd.

Usage

"summary"(object, ...)

Arguments

object
BAEssd object. Result from a Bayesian Average Error based sample size calculation.
...
Additional parameters passed to or from other methods.

Value

Vector with 5 elements:
n
Selected sample size.
AE1
Average Bayes Type-I Error rate for the selected sample size.
AE2
Average Bayes Type-II Error rate for the selected sample size.
TWE
Total Weighted Error for the selected sample size.
TE
Total Error for the selected sample size.

Details

Creates a nice printout giving the Average Errors at the chosen sample size.

See Also

ssd, summary

Examples

Run this code
############################################################
# One-sample normal experiment with known variance.

# load suite of functions
f1 <- norm1KV.2sided(sigma=5,theta0=0,prob=0.5,mu=2,tau=1)

# compare results of fast method with general method
attach(f1)
ss1 <- ssd.norm1KV(alpha=0.25,w=0.5,logm=logm)
ss2 <- ssd.norm1KV.2sided(alpha=0.25,w=0.5)
detach(f1)

# look at structure
str(summary(ss1))

Run the code above in your browser using DataLab