print.size {seqtest} | R Documentation |
Print size object
Description
This function prints the size
object
Usage
## S3 method for class 'size'
print(x, ...)
Arguments
x |
|
... |
further arguments passed to or from other methods. |
Author(s)
Takuya Yanagida takuya.yanagida@univie.ac.at
References
Rasch, D., Kubinger, K. D., & Yanagida, T. (2011). Statistics in psychology - Using R and SPSS. New York: John Wiley & Sons.
See Also
size.mean
, size.prop
, size.cor
Examples
#--------------------------------------
# Two-sided one-sample test
# theta = 0.5
# alpha = 0.05, beta = 0.2
n <- size.mean(theta = 0.5, sample = "one.sample",
alternative = "two.sided", alpha = 0.05, beta = 0.2)
print(n)
#--------------------------------------
# Two-sided one-sample test
# H0: pi = 0.5, H1: pi != 0.5
# alpha = 0.05, beta = 0.2, delta = 0.2
n <- size.prop(delta = 0.2, pi = 0.5, sample = "one.sample",
alternative = "two.sided", alpha = 0.05, beta = 0.2)
print(n)
#--------------------------------------
# H0: rho = 0.3, H1: rho != 0.3
# alpha = 0.05, beta = 0.2, delta = 0.2
n <- size.cor(delta = 0.2, rho = 0.3, alpha = 0.05, beta = 0.2)
print(n)
[Package seqtest version 0.1-0 Index]