View source: R/compute_scores.R
compute_scores | R Documentation |
Same usage as anova.glm
.
The parameter id
is used too,
if present in model0
(with priority) or in model1
.
compute_scores(model0, model1, score_type = "standardized")
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. |
Jesse Hemerik, Riccardo De Santis, Vittorio Giatti, Jelle Goeman and Livio Finos
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.