is.empty.model | R Documentation |
R's formula notation allows models with no intercept and no
predictors. These require special handling internally.
is.empty.model()
checks whether an object describes an empty
model.
is.empty.model(x)
x |
A |
TRUE
if the model is empty
lm
, glm
y <- rnorm(20) is.empty.model(y ~ 0) is.empty.model(y ~ -1) is.empty.model(lm(y ~ 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.