Learn R Programming

mariposa (version 0.7.3)

print.partial_cor: Print partial correlation results (compact)

Description

Compact print method for objects of class "partial_cor": one line per variable pair with the partial correlation, p-value, and the zero-order correlation for comparison.

Usage

# S3 method for partial_cor
print(x, digits = 3, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "partial_cor" returned by partial_cor.

digits

Number of decimal places (default: 3).

...

Additional arguments (not used).

Examples

Run this code
result <- partial_cor(survey_data, life_satisfaction, income, controls = age)
result              # compact overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab