Learn R Programming

mariposa (version 0.7.3)

print.summary.pearson_cor: Print summary of Pearson correlation results (detailed output)

Description

Displays the detailed SPSS-style output for a Pearson correlation, with sections controlled by the boolean parameters passed to summary.pearson_cor. Sections include the correlation matrix, p-value matrix, and sample size matrix.

Usage

# S3 method for summary.pearson_cor
print(x, ...)

Value

Invisibly returns the input object x.

Arguments

x

A summary.pearson_cor object created by summary.pearson_cor.

...

Additional arguments (not used).

See Also

pearson_cor for the main analysis, summary.pearson_cor for summary options.

Examples

Run this code
result <- pearson_cor(survey_data, age, life_satisfaction)
summary(result)                             # all matrices
summary(result, pvalue_matrix = FALSE)      # hide p-values

Run the code above in your browser using DataLab