num.intercepts: Extract number of intercepts

View source: R/num.intercepts.s

num.interceptsR Documentation

Extract number of intercepts


Extract the number of intercepts from a model


num.intercepts(fit, type=c('fit', 'var', 'coef'))



a model fit object


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 the var object, or type='coef' to return the actual number in the fitted coefficients. The former will be less than the number fitted for orm fits, and the latter for orm fits passed through fit.mult.impute


num.intercepts returns an integer with the number of intercepts in the model.

See Also

orm, fit.mult.impute

harrelfe/Hmisc documentation built on May 19, 2024, 4:13 a.m.