Learn R Programming

WALS (version 0.2.5)

controlGLM: Control function for initial GLM fit

Description

Defines controllable parameters of initial GLM fit in walsGLM.

Usage

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

Value

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

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.

See Also

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

Examples

Run this code
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)))

Run the code above in your browser using DataLab