Extract number of intercepts
num.intercepts.RdExtract the number of intercepts from a model
Usage
num.intercepts(fit, type=c('fit', 'var', 'coef'))Arguments
- fit
a model fit object
- type
the default is to return the formal number of intercepts used when fitting the model. Set
type='var'to return the actual number of intercepts stored in thevarobject, ortype='coef'to return the actual number in the fitted coefficients. The former will be less than the number fitted forormfits, and the latter forormfits passed throughfit.mult.impute. If thevarobject is not present, the number of intercepts is determined from theabelement of theinfo.matrixobject if it is present.