powered by
Creates a summary object that produces detailed output when printed, including correlation matrices, p-value matrices, and sample size matrices.
# S3 method for pearson_cor summary( object, correlation_matrix = TRUE, pvalue_matrix = TRUE, n_matrix = TRUE, digits = 3, ... )
A summary.pearson_cor object.
summary.pearson_cor
A pearson_cor result object.
pearson_cor
Logical. Show the correlation coefficient matrix? (Default: TRUE)
Logical. Show the p-value matrix? (Default: TRUE)
Logical. Show the sample size matrix? (Default: TRUE)
Number of decimal places for formatting (Default: 3).
Additional arguments (not used).
pearson_cor for the main analysis function.
result <- pearson_cor(survey_data, trust_government, trust_media) summary(result) summary(result, pvalue_matrix = FALSE)
Run the code above in your browser using DataLab