# has.intercept

From plm v2.2-5
by Yves Croissant

##### 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

##### Usage

`has.intercept(object, ...)`# S3 method for default
has.intercept(object, ...)

# S3 method for formula
has.intercept(object, ...)

# S3 method for Formula
has.intercept(object, rhs = NULL, ...)

# S3 method for panelmodel
has.intercept(object, ...)

# S3 method for plm
has.intercept(object, part = "first", ...)

##### Arguments

- object
a

`formula`

, a`Formula`

or a fitted model (of class`plm`

or`panelmodel`

),- …
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

`Formula`

and the`plm`

methods),

##### Value

a boolean

*Documentation reproduced from package plm, version 2.2-5, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.