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
model formula as in formula-only case, without left-hand side
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
fixed values of parameters. Same usage as documented in fitme
A list of arguments that control the computation of the distance argument of the correlation functions. Same usage as documented in HLCor
A family
object or a list
of family objects describing the distribution of the random effect(s). Same usage as documented for HLfit
Currently 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);
identical to data from the parent call, which must therefore 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 HLfit
call.
Lee, Y., Nelder, J. A. and Pawitan, Y. (2006) Generalized linear models with random effects: unified analysis via h-likelihood. Chapman & Hall: London.
# NOT RUN {
if (spaMM.getOption("example_maxtime")>4.9) {
data("crack") # crack data, Lee et al. 2006 chapter 11 etc
hlfit <- HLfit(y~crack0+(1|specimen),family=Gamma(log),
data=crack, HLmethod="REML",
rand.family=inverse.Gamma(log),
resid.model=list(formula=~cycle+(1|specimen)) )
}
# }
Run the code above in your browser using DataLab