Learn R Programming

mariposa (version 0.7.3)

summary.spearman_rho: Summary method for Spearman correlation results

Description

Creates a summary object that produces detailed output when printed, including rho matrices, p-value matrices, and sample size matrices.

Usage

# S3 method for spearman_rho
summary(
  object,
  correlation_matrix = TRUE,
  pvalue_matrix = TRUE,
  n_matrix = TRUE,
  digits = 3,
  ...
)

Value

A summary.spearman_rho object.

Arguments

object

A spearman_rho result object.

correlation_matrix

Logical. Show the rho coefficient matrix? (Default: TRUE)

pvalue_matrix

Logical. Show the p-value matrix? (Default: TRUE)

n_matrix

Logical. Show the sample size matrix? (Default: TRUE)

digits

Number of decimal places for formatting (Default: 3).

...

Additional arguments (not used).

See Also

spearman_rho for the main analysis function.

Examples

Run this code
result <- spearman_rho(survey_data, trust_government, trust_media)
summary(result)
summary(result, pvalue_matrix = FALSE)

Run the code above in your browser using DataLab