head(data_Pedhazur_1997)
# \donttest{
# replicating results on p. 594 for the Johnson-Neyman technique for a categorical moderator
MODERATED_REGRESSION(data=data_Pedhazur_1997, DV='Y',
IV='X', IV_range='tumble',
MOD='Directive', MOD_type = 'factor', MOD_levels='quantiles',
quantiles_IV=c(.1, .9), quantiles_MOD=c(.25, .5, .75),
center = FALSE,
plot_type = 'interaction',
JN_type = 'Pedhazur')
# }
Run the code above in your browser using DataLab