View source: R/MARGE_package.R
score_fun_glm | R Documentation |
Given estimates from the null model fit and the design matrix for alternative model, find the score statistic (this is used for GLMs only).
score_fun_glm(
Y,
N,
VS.est_list,
A_list,
B1_list,
mu.est,
V.est,
B1,
XA,
nb = FALSE,
...
)
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 |
... |
: further arguments passed to or from other methods. |
score_fun_glm
returns a calculated score statistic for the null and alternative model when fitting a GLM.
Jakub Stoklosa and David I. Warton.
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.
score_fun_gee
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.