orm.fit(x=NULL, y, family='logistic', offset=0., initial, maxit=12L, eps=.005, tol=1e-7, trace=FALSE, penalty.matrix=NULL, scale=FALSE)
factor(y)
.
family
argument can be an unquoted or a quoted string,
e.g. family=loglog
or family="loglog"
. To use
a built-in family, the string must be one of the following
corresponding to the previous list: logistic, probit, loglog,
cloglog, cauchit
. The user can also provide her own customized
family by setting family
to a list with elements cumprob,
inverse, deriv, deriv2
; see the body of orm.fit
for examples.
An additional element, name
must be given, which is a character
string used to name the family for print
and latex
.initial
is not specified, the function computes
the overall score $\chi^2$ test for the global null hypothesis of
no regression.12
)..005
. If the $-2 log$ likelihood gets
worse by eps/10 while the maximum absolute first derivative of
-2 loglikelihood is below 1E-9, convergence is still declared. This handles the case where the initial estimates are MLEs, to prevent endless step-halving.
TRUE
to print -2 log likelihood, step-halving
fraction, change in -2 log likelihood, and maximum absolute value of first
derivative at each iteration.
lrm
TRUE
to subtract column means and divide by
column standard deviations of x
before fitting, and to back-solve for the un-normalized covariance
matrix and regression coefficients. This can sometimes make the model
converge for very large
sample sizes where for example spline or polynomial component
variables create scaling problems leading to loss of precision when
accumulating sums of squares and crossproducts.orm
, lrm
, glm
,
gIndex
, solve
#Fit an additive logistic model containing numeric predictors age,
#blood.pressure, and sex, assumed to be already properly coded and
#transformed
#
# fit <- orm.fit(cbind(age,blood.pressure,sex), death)
Run the code above in your browser using DataLab