# print.test.cor: Print cor.rhotest In miscor: Miscellaneous Functions for the Correlation Coefficient

## Description

This function prints the `test.cor` object

## Usage

 ```1 2``` ```## S3 method for class 'test.cor' print(x, ...) ```

## Arguments

 `x` `test.cor` object. `...` 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.

Kubinger, K. D., Rasch, D., & Simeckova, M. (2007). Testing a correlation coefficient's significance: Using H0: 0 < ρ ≤ λ is preferable to H0: ρ = 0. Psychology Science, 49, 74-87.

`test.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``` ```#-------------------------------------- # Two-sided test # H0: rho == 0, H1: rho != 0 # r = 0.23, n = 60 obj <- test.cor(r = 0.23, n = 120, output = FALSE) print(obj) #-------------------------------------- # Two-sided test # H0: rho == 0.4, H1: rho != 0.4 # r = 0.55, n = 120 obj <- test.cor(r = 0.55, n = 120, rho0 = 0.4, output = FALSE) print(obj) #-------------------------------------- # One-sided test # H0: rho <= 0.4, H1: rho > 0.4 # Generate random data dat <- sim.cor(100, rho = 0.4) obj <- test.cor(dat\$x, dat\$y, rho0 = 0.4, output = FALSE) print(obj) ```