Fitting random effects in the residual dispersion model
φ parameters are estimated by fitting a Gamma HGLM to response values computed by the parent fitting function (e.g., by HLfit
in the Examples). The fitme
function is used to perform this fit. The resid.model
of the parent call is used to control the arguments of this fitme
call.
# 'resid.model' argument of main fitting functions
resid.model
is either a formula (without left-hand side) for the dispersion parameter phi
of the residual error (a log link is assumed); or a list of arguments similar to those of a standard fit. The following arguments may be useful:
formula |
model formula as in formula-only case, without left-hand side. Random effects can be included and this appears to work well in simple cases (block effects, or geostatistical models) but has not been tested, or hardly so, for other cases. |
family |
The family is always Gamma. The default link is log. The identity link can be tried but may fail because only the log link ensures that the fitted φ is positive. |
fixed |
fixed values of parameters. Same usage as documented in |
control.dist |
A list of arguments that control the computation of the distance argument of the correlation functions. Same usage as documented in |
rand.family |
A |
init, lower, upper, control |
with same usage as documented in |
Other arguments should be ignored (see Details).
The following elements in resid.model
should be ignored:
which is constrained to be identical to the method from the parent call;
constrained to be identical to the same-named controls from the parent call;
constrained: no resid.model
for a resid.model
;
constrained to NULL;
The data of the parent call are used, so they must include all the variables required for the resid.model
;
constrained: no prior weights;
constrained: will display a progress line summarizing the results of the resid.model
fit at each iteration of main loop of the parent call.
Ignored. Users would have hard time guessing good initial values, which would be have to be ignored in most contexts anyway.
Lee, Y., Nelder, J. A. and Pawitan, Y. (2006) Generalized linear models with random effects: unified analysis via h-likelihood. Chapman & Hall: London.
data("crack") # crack data, Lee et al. 2006 chapter 11 etc hlfit <- HLfit(y~crack0+(1|specimen), family=Gamma(log), data=crack, rand.family=inverse.Gamma(log), resid.model=list(formula=~cycle+(1|specimen)) )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.