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, ...)# S3 method for default
has.intercept(object, data = NULL, ...)
# S3 method for formula
has.intercept(object, data = NULL, ...)
# S3 method for Formula
has.intercept(object, rhs = NULL, data = NULL, ...)
# S3 method for panelmodel
has.intercept(object, ...)
# S3 method for plm
has.intercept(object, rhs = 1L, ...)
a logical
a formula
, a Formula
or a fitted model (of class
plm
or panelmodel
),
further arguments.
default is NULL
and only needs to be changes to a data set if
the formula contains a dot (.
) to allow evaluation of the dot,
an integer (length > 1 is possible), indicating the parts of right
hand sides of the formula to be evaluated for the presence of an
intercept or NULL
for all parts of the right hand side
(relevant for the Formula
and the plm
methods),