Johnson Neyman Plotting Tool for Conditional Effects

The function modplot() takes an lm object with X*M and plots conditional effects through range of M. This mimics PROCESS but uses ggplot to visualise.

Usage:

modplot(lm, predictor = “X”, moderator = “M”, alpha = .05, jn = T) + [any ggplot layers]

if jn = F, vertical lines demarcating the region(s) of significance will not be drawn.

EPYp1-XGX4-AAK3-Ei

Avaliable here: https://github.com/thomcurran/PB130/blob/master/Packages/modplot_0.1.0.tar.gz

Assistant Professor of Psychological and Behavioural Science

I’m a social psychologist interested in the development of perfectionism who also happens to enjoy R programming.

Previous