Learn R Programming

probemod (version 0.1)

pickapoint: Pick-A-Point Technique

Description

Probe moderation effect using the Pick-A-Point technique

Usage

pickapoint(model, dv, iv, mod, points, method = "meansd", alpha = 0.05)

Arguments

model
regression model (lm).
dv
dependent variable (character).
iv
independent variable (character).
mod
moderator variable(s) (character or character vector).
points
list of points to test for each moderators (list).
method
method to use. Possible values are: "meansd", "percentiles", centered="meansd" by default.
alpha
alpha level to use (numeric).

Value

  • A list with the elements

References

Spiller, S. A., Fitzsimons, G. J., Lynch, J. G., Jr, & McClelland, G. H. (2013). Spotlights, floodlights, and the magic number zero: Simple effects tests in moderated regression. Journal of Marketing Research, 50(2), 277-288.

Aiken, L. S., & West, S. G. (1991). Multiple regression: Testing and interpreting interactions. Thousand Oaks, CA: Sage Publications.

Examples

Run this code
myModel <- lm('dv ~ iv + mod', data=someData)
pickapoint(myModel, dv='DV', iv='IV', mod='MOD')
pickapoint(myModel, dv='DV', iv='IV', mod='MOD', alpha=.01)
pickapoint(myModel, dv='DV', iv='IV', mod='MOD', method='percentiles')
pickapoint(myModel, dv='DV', iv='IV', mod='MOD', points=c(1,2,3))

Run the code above in your browser using DataLab