summary.BAEssd: Summarizing BAE Sample Size Calculations

Description Usage Arguments Details Value See Also Examples

View source: R/summary.BAEssd.R

Description

summary method for class BAEssd.

Usage

1
2
  ## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
############################################################
# 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))

BAEssd documentation built on May 2, 2019, 3 a.m.