score_fun_glm: score_fun_glm

View source: R/MARGE_package.R

score_fun_glmR Documentation

score_fun_glm

Description

Given estimates from the null model fit and the design matrix for alternative model, find the score statistic (this is used for GLMs only).

Usage

score_fun_glm(
  Y,
  N,
  VS.est_list,
  A_list,
  B1_list,
  mu.est,
  V.est,
  B1,
  XA,
  nb = FALSE,
  ...
)

Arguments

Y

: the response variable.

N

: the number of clusters.

VS.est_list

: a product of matrices.

A_list

: a product of matrices.

B1_list

: a product of matrices.

mu.est

: estimates of the fitted mean under the null model.

V.est

: estimates of the fitted variance under the null model.

B1

: model matrix under the null model.

XA

: model matrix under the alternative model.

nb

: a logical argument, is the model a negative binomial model? The default is FALSE.

...

: further arguments passed to or from other methods.

Value

score_fun_glm returns a calculated score statistic for the null and alternative model when fitting a GLM.

Author(s)

Jakub Stoklosa and David I. Warton.

References

Stoklosa, J., Gibb, H. and Warton, D.I. (2014). Fast forward selection for generalized estimating equations with a large number of predictor variables. Biometrics, 70, 110–120.

Stoklosa, J. and Warton, D.I. (2018). A generalized estimating equation approach to multivariate adaptive regression splines. Journal of Computational and Graphical Statistics, 27, 245–253.

See Also

score_fun_gee


JakubStats/marge documentation built on Feb. 25, 2024, 9:38 p.m.