- null.formula
Either a formula
(as in glm
) or a predictor
(see Predictor
) for the null model.
- formula
Either a formula
or a predictor
for the full model.
- data
A data frame containing the variables in the model.
- method
A method to fit the full and null models.
See method
information about such methods.
The two most meaningful values of method
in fixedLRT
calls are:
'ML'
for an LRT based on ML fits (generally recommended); and
'PQL/L'
for an LRT based on PQL/L fits (recommended for spatial binary data).
Also feasible, but more tricky, and not really recommended (see Rousset and Ferdy, 2014), is 'REML'
.
This will perform an LRT based on two REML fits of the data, *both* of which use the
same conditional (or “restricted”) likelihood of residuals for estimating dispersion parameters \(\lambda\) and \(\phi\) (see REMLformula
argument).
Further, REML will not be effective on a given dispersion parameter if a non-trivial init.corrHLfit value is provided for this parameter.
- HLmethod
Kept for back-compatibility. Same as method
, but may work only for
fittingFunction=corrHLfit
.
- REMLformula
a formula specifying the fixed effects which design matrix is used in the REML correction
for the estimation of dispersion parameters, if these are estimated by REML.
This formula is by default that for the *full* model.
- weights.form
Specification of prior weights by a one-sided formula: use weights.form = ~ pw
instead of prior.weights = pw
. The effect will be the same except that such an argument, known to evaluate to an object of class "formula"
, is suitable to enforce safe programming practices (see good-practice
).
- boot.repl
the number of bootstrap replicates.
- control
Deprecated.
- control.boot
Deprecated.
- fittingFunction
Character string giving the function used to fit each model: either "corrHLfit"
or "fitme"
. Default is "corrHLfit"
for small data sets (fewer than 300 observations), and "fitme"
otherwise, but this may change in future versions.
- seed
Passed to simulate.HLfit
- resp_testfn
See argument resp_testfn
of spaMM_boot