pCorr: Partial and Semipartial (Part) Correlations

Description Usage Arguments Note Examples

View source: R/pCorr.R

Description

Simple function to produce partial and part (semipartial) correlation coefficients after a model run in lm(). Also returns the "squares" of each metric.

Usage

1
pCorr(obj)

Arguments

obj

Model object from an lm() fitted equation.

Note

Requires at least two independent variables in the lm() object.

Examples

1
2
3
 mod <- lm(hp ~ disp + wt, data=mtcars)
 summary(mod)
 pCorr(mod)

MichaelJMahometa/SDSRegressionR documentation built on March 3, 2021, 10:51 p.m.