size_corr {mcradds} | R Documentation |
Sample Size for Testing Pearson's correlation
Description
This function performs sample size computation for testing Pearson's correlation, using uses Fisher's classic z-transformation to normalize the distribution of Pearson's correlation coefficient.
Usage
size_corr(
r1,
r0,
alpha = 0.05,
power = 0.8,
alternative = c("two.sided", "less", "greater")
)
Arguments
r1 |
( |
r0 |
( |
alpha |
( |
power |
( |
alternative |
( |
Value
an object of size
class that contains the sample size and relevant parameters.
References
Fisher (1973, p. 199).
See Also
size_one_prop()
size_ci_one_prop()
size_ci_corr()
Examples
size_corr(r1 = 0.95, r0 = 0.9, alpha = 0.025, power = 0.8, alternative = "greater")
[Package mcradds version 1.1.0 Index]