ROlogit (version 0.1.2)

hresid: Obtain the heuristic residuals.

Description

Obtain the heuristic residuals.

Usage

hresid(y, svar, design.mat, o, initial.res.par = c(0, 0), ...)

Arguments

y

vector of numeric. The outcomes.

svar

vector of numeric. The strata variable.

design.mat

matrix. The design matrix including intercept term.

o

matrix. Contains the estimated coefficients of the RO-logit and their SEs.

initial.res.par

The initial values of the intercept and log(scale), to be passed to the optim function. The default values are set to c(0, 0), yet users are recommended to try a few initial values to make sure global optimum is reached.

...

Other parameters to be passed to the optim function. See optim for details.

Value

Returns a list containing the estimated intercept and log(scale), the covariance matrix of these two parameters, convergence status from optim, and the heuristic residuals.