File: num.intercepts.Rd

package info (click to toggle)
hmisc 4.2-0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,332 kB
  • sloc: asm: 27,116; fortran: 606; ansic: 411; xml: 160; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (3)
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}}
  }
}
\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}}
}