Description Usage Arguments Details Value See Also Examples
View source: R/summary.BAEssd.R
summary
method for class BAEssd
.
1 2 |
object |
BAEssd object. Result from a Bayesian Average Error based sample size calculation. |
... |
Additional parameters passed to or from other methods. |
Creates a nice printout giving the Average Errors at the chosen sample size.
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. |
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.