% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/johnson_neyman.R
\name{johnson_neyman}
\alias{johnson_neyman}
\title{Johnson-Neyman Analysis}
\usage{
johnson_neyman(object, alpha = 0.05, robust = NULL)
}
\arguments{
\item{object}{A fitted model (modlr object)}

\item{alpha}{Significance level}

\item{robust}{Logical; use HC3 robust standard errors}
}
\value{
A data.frame of Johnson-Neyman results
}
\description{
Computes regions of significance for an interaction effect.
}
\examples{
set.seed(123)

n <- 100
x <- rnorm(n)
z <- 0.5 * x + sqrt(1 - 0.5^2) * rnorm(n)
y <- 0.3 * x + 0.3 * z + 0.8 * x * z + rnorm(n)

data <- data.frame(x, z, y)

result <- moderated_regression(data, iv = "x", moderator = "z", dv = "y")

johnson_neyman(result)
johnson_neyman(result, robust = TRUE)

}
