compute_scores {flipscores} | R Documentation |
compute_scores
Description
Same usage as anova.glm
.
The parameter id
is used too,
if present in model0
(with priority) or in model1
.
Usage
compute_scores(model0, model1, score_type = "standardized")
Arguments
model0 |
a |
model1 |
a |
score_type |
The type of score that is computed. It is "orthogonalized", "effective" or "basic". "effective" and "orthogonalized" take into account the nuisance estimation. |
Author(s)
Jesse Hemerik, Riccardo De Santis, Vittorio Giatti, Jelle Goeman and Livio Finos
Examples
set.seed(1)
Z=rnorm(20)
X=Z+rnorm(20)
Y=rpois(n=20,lambda=exp(Z+X))
mod0=glm(Y~Z,family="poisson")
X=data.frame(X=X)
scr0=compute_scores(model0 = mod0, model1 = X)
head(scr0)
[Package flipscores version 1.2.0 Index]