Description Usage Arguments Author(s) References See Also Examples
This function prints the size
object
1 2 |
x |
|
... |
further arguments passed to or from other methods. |
Takuya Yanagida takuya.yanagida@univie.ac.at
Rasch, D., Kubinger, K. D., & Yanagida, T. (2011). Statistics in psychology - Using R and SPSS. New York: John Wiley & Sons.
size.mean
, size.prop
, size.cor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #--------------------------------------
# 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.