\HeaderA{is.empty.model}{Check if a Model is Empty}{is.empty.model}
\keyword{models}{is.empty.model}
\begin{Description}\relax
\R{} model notation allows models with no intercept and no predictors. These require special handling internally.  \code{is.empty.model()} checks whether an object describes an empty model.
\end{Description}
\begin{Usage}
\begin{verbatim}
is.empty.model(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A \code{terms} object or an object with a \code{terms} method.
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{TRUE} if the model is empty
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{lm}{lm}},\code{\LinkA{glm}{glm}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
y <- rnorm(20)
is.empty.model(y ~ 0)
is.empty.model(y ~ -1)
is.empty.model(lm(y ~ 0))
\end{ExampleCode}
\end{Examples}

