Learn R Programming

reghelper (version 0.3.3)

sig_regions: Regions of significance for an interaction.

Description

sig_regions is a generic function for calculating the Johnson-Neyman regions of significance for an interaction, the points at which the simple effect of the categorical predictor changes from non-significant to significant.

Usage

sig_regions(model, ...)

Arguments

model

A fitted linear model of type 'lm'.

...

Additional arguments to be passed to the particular method for the given model.

Value

The form of the value returned by sig_regions depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method.

See Also

sig_regions.lm, simple_slopes

Examples

Run this code
# NOT RUN {
# mtcars data
mtcars$am <- factor(mtcars$am)  # make 'am' categorical
model <- lm(mpg ~ wt * am, data=mtcars)
summary(model)  # significant interaction
sig_regions(model)
# }

Run the code above in your browser using DataLab