sig_regions: Regions of significance for an interaction.
Description
sig_regions calculates the Johnson-Neyman (J-N) regions of
significance for an interaction -- the points at which the simple effect of
the categorical predictor changes from non-significant to significant.
A named vector with a 'lower' and an 'upper' J-N point. If one or
more of the J-N points fall outside the range of your predictor, the
function will return NA for that point. If your interaction is not
significant, both J-N points will be NA.
Arguments
model
A fitted linear model of type 'lm' or 'glm' with one two-way
interaction including one categorical predictor and one continuous variable.
...
Not currently implemented; used to ensure consistency with S3 generic.
alpha
The level at which to test for significance. Default value is
.05.
precision
The number of decimal places to which to round the alpha
level (e.g., precision=5 would look for regions of significance at .05000).
Methods (by class)
sig_regions(lm): Johnson-Neyman points for linear models.
sig_regions(glm): Johnson-Neyman points for generalized linear models.
Details
This function takes a linear or generalized linear model with one two-way
interaction, where one of the predictors in the interaction is categorical
(factor) and the other is continuous. For other types of interaction terms,
use the simple_slopes function instead.