compute_scores
compute_scores.RdComputes Score contributions for variables in model1 (or derived from ) under the null model model0.
Same usage as anova.glm.
The parameter id is used too,
if present in model0 (with priority) or in model1.
Arguments
- model0
a
glmobject with the model under the null hypothesis (i.e. the covariates, the nuisance parameters).- model1
a
glmor amatrix(orvector). If it is aglmobject, it has the model under the alternative hypothesis. The variables inmodel1are the same variables inmodel0plus one or more variables to be tested. Alternatively, ifmodel1is amatrix, it contains the tested variables column-wise.- score_type
The type of score that is computed. It is "orthogonalized", "effective" or "basic". "effective" and "orthogonalized" take into account the nuisance estimation.
- ...
other arguments.
- id
Cluster identifiers, a column name, or a one-sided formula. The resolved vector is stored in
attr(scores, "id"), in score-row order.