Learn R Programming

purging (version 1.0.0)

Simple Method for Purging Mediation Effects among Independent Variables

Description

Simple method of purging independent variables of mediating effects. First, regress the direct variable on the indirect variable. Then, used the stored residuals as the new purged (direct) variable in the updated specification. This purging process allows for use of a new direct variable uncorrelated with the indirect variable. Please cite the method and/or package using Waggoner, Philip D. (2018) .

Copy Link

Version

Install

install.packages('purging')

Monthly Downloads

153

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Philip Waggoner

Last Published

March 21st, 2018

Functions in purging (1.0.0)

purge.probit

Purges mediator effects between two independent variables (probit link function)
purge.logit

Purges mediator effects between two independent variables (logit link function)
purge.negbin

Purges mediator effects between two independent variables (negative binomial)
purge.poisson

Purges mediator effects between two independent variables (Poisson)
purge.lm

Purges mediator effects between two independent variables (linear)