summary.BAEssd {BAEssd}R Documentation

Summarizing BAE Sample Size Calculations

Description

summary method for class BAEssd.

Usage

  ## S3 method for class 'BAEssd'
summary(object, ...)

Arguments

object

BAEssd object. Result from a Bayesian Average Error based sample size calculation.

...

Additional parameters passed to or from other methods.

Details

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

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.

See Also

ssd, summary

Examples

############################################################
# 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))

[Package BAEssd version 1.0.1 Index]