controlGLM {WALS}R Documentation

Control function for initial GLM fit

Description

Defines controllable parameters of initial GLM fit in walsGLM.

Usage

controlGLM(restricted = FALSE, controlGLMfit = list())

Arguments

restricted

If TRUE, then initial fit in glm.fit only considers the focus regressors. By default FALSE, then the unrestricted model is estimated in glm.fit (i.e. all regressors).

controlGLMfit

List. Arguments to be passed to control argument of glm.fit. See also glm.control.

Value

Returns a list containing the parameters specified in the arguments to be used in walsGLM (and walsGLMfitIterate).

See Also

walsGLM, walsGLMfitIterate, glm.fit, glm.control.

Examples

data("HMDA", package = "AER")
fitBinomial <- walsGLM(deny ~ pirat + hirat + lvrat + chist + mhist + phist |
                       selfemp + afam, data = HMDA,
                       family = binomialWALS(),
                       prior = weibull(),
                       controlInitGLM = controlGLM(restricted = TRUE,
                                                   controlGLMfit = list(trace = TRUE)))


[Package WALS version 0.2.5 Index]