Learn R Programming

schoRsch (version 1.10)

cor_out: Format Correlation Test Statistics

Description

Distilles the most relevant data from an output object of cor.test and displays the results in a compact format.

Usage

cor_out(coroutput, stats = FALSE, print = TRUE)

Value

cor_out(coroutput,...) returns a line containing the formatted correlation results.

Arguments

coroutput

Output object created by a call to cor.test.

stats

If TRUE, the output includes t-values and corresponding degrees of freedom (default=FALSE.

print

Force results to be displayed, even if the function output is assigned to a variable (e.g., output <- cor_out(...); logical; default=TRUE).

Author

Markus Janczyk, Roland Pfister

Details

The output of a call to cor.test is formatted according to the guidelines of the APA (American Psychological Association) as well as the DGPs ("Deutsche Gesellschaft fuer Psychologie"; German Psychological Society).

See Also

cor; cor.test; anova_out; chi_out; t_out;