File: num.intercepts.Rd

package info (click to toggle)
hmisc 5.2-5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,044 kB
  • sloc: asm: 28,907; f90: 590; ansic: 415; xml: 160; fortran: 75; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\name{num.intercepts}
\alias{num.intercepts}
\title{Extract number of intercepts}
\description{
  Extract the number of intercepts from a model
}
\usage{
num.intercepts(fit, type=c('fit', 'var', 'coef'))
}
\arguments{
  \item{fit}{a model fit object}
  
  \item{type}{
    the default is to return the formal number of intercepts used when fitting
    the model.  Set \code{type='var'} to return the actual number of
    intercepts stored in the \code{var} object, or \code{type='coef'} to
    return the actual number in the fitted coefficients.  The former will be
    less than the number fitted for \code{\link[rms]{orm}} fits, and the
    latter for \code{orm} fits passed through
    \code{\link{fit.mult.impute}}.  If the \code{var} object is not present, the number of intercepts is determined from the \code{ab} element of the \code{info.matrix} object if it is present.
  }
}
\value{
  \code{num.intercepts} returns an integer with the number of intercepts
  in the model.
}
\seealso{
  \code{\link[rms]{orm}}, \code{\link{fit.mult.impute}}
}