Check for the presence of an intercept in a formula or in a fitted model
The presence of an intercept is checked using the formula which is either provided as the argument of the function or extracted from a fitted model
has.intercept(object, ...) ## Default S3 method: has.intercept(object, ...) ## S3 method for class 'formula' has.intercept(object, ...) ## S3 method for class 'Formula' has.intercept(object, rhs = NULL, ...) ## S3 method for class 'panelmodel' has.intercept(object, ...) ## S3 method for class 'plm' has.intercept(object, part = "first", ...)
object |
a |
... |
further arguments. |
rhs, part |
the index of the right hand sides part of the
formula for which one wants to check the presence of an
intercept (relevant for the |
a boolean
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.