hresid: Obtain the heuristic residuals.

Description Usage Arguments Value

Description

Obtain the heuristic residuals.

Usage

1
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.


ROlogit documentation built on May 2, 2019, 6:49 a.m.

Related to hresid in ROlogit...