Learn R Programming

mariposa (version 0.7.3)

summary.partial_cor: Summary method for partial correlation results

Description

Creates a summary object that produces detailed output when printed: the pairwise partial-correlation table (with zero-order comparison, df, t, and p) and — for three or more variables — the partial-correlation matrix.

Usage

# S3 method for partial_cor
summary(object, pairwise = TRUE, matrix = TRUE, digits = 3, ...)

Value

A summary.partial_cor object.

Arguments

object

A partial_cor result object.

pairwise

Logical. Show the pairwise results table? (Default: TRUE)

matrix

Logical. Show the partial-correlation matrix (three or more analysis variables)? (Default: TRUE)

digits

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

...

Additional arguments (not used).

See Also

partial_cor for the main analysis function.

Examples

Run this code
result <- partial_cor(survey_data, trust_government, trust_media,
                      trust_science, controls = age)
summary(result)
summary(result, matrix = FALSE)

Run the code above in your browser using DataLab