score.test(secr, ..., betaindex = NULL, trace = FALSE, ncores = 1, .relStep = 0.001,
minAbsPar = 0.1)
score.table(object, ..., sort = TRUE, dmax = 10)
fdHess
fdHess
score.table
is a dataframe with one row per model, including the reference model.fdHess
of the secr
. If the new models require additional covariates these may
usually be added to the respective component of secr
.
Mapping of parameters between the fitted and alternative models
sometimes requires user intervention via the betaindex
argument.
For example betaindex
= c(1,2,4) is the correct mapping when
comparing the null model (D$\sim{~}$1, g0$\sim{~}$1,
sigma$\sim{~}$1) to one with a behavioural effect on g0
(D$\sim{~}$1, g0$\sim{~}$b, sigma$\sim{~}$1).
The arguments .relStep
and minAbsPar
control the numerical
gradient calculation and are passed directly to
fdHess
. More investigation is needed to determine
optimal settings.
score.table
summarises one or more score tests in the form of a
model comparison table. The ...argument here allows the inclusion of
additional score test objects (note the meaning differs from
score.test
). Approximate AICc values are used to compute relative
AIC model weights for all models within dmax AICc units of the best
model.
Multiple cores provide some speed improvment in score.test
when
comparing more than two models.AIC
, LR.test
AIC (secrdemo.0, secrdemo.b)
st <- score.test (secrdemo.0, g0 ~ b)
st
score.table(st)
## adding a time covariate to separate occasions (1,2) from (3,4,5)
secrdemo.0$timecov <- data.frame(t2 = factor(c(1,1,2,2,2)))
st2 <- score.test (secrdemo.0, g0 ~ t2)
score.table(st,st2)
Run the code above in your browser using DataLab