stat_out_score_glm_null: stat_out_score_glm_null

View source: R/MARGE_package.R

stat_out_score_glm_nullR Documentation

stat_out_score_glm_null

Description

A function that calculates parts of the score statistic for GLMs only (it is used for the full path for forward selection).

Usage

stat_out_score_glm_null(Y, family = "gaussian", B_null, nb = FALSE, ...)

Arguments

Y

: the response variable.

family

: the specified "exponential" family for the GLM. The default is family = "gaussian".

B_null

: model matrix under the null 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

stat_out_score_glm_null returns a list of values (mainly products of matrices) that make up the final score statistic calculation (required for another function).

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

stat_out and stat_out_score_glm_null


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