View source: R/MARGE_package.R
stat_out_score_null | R Documentation |
A function that calculates parts for the score statistic for GEEs (it is used for the full path for forward selection).
stat_out_score_null(
Y,
N,
n,
id,
family = "gaussian",
corstr = "independence",
B_null,
nb = FALSE,
is.gee = FALSE,
...
)
Y |
: the response variable. |
N |
: the number of clusters. |
n |
: the maximum cluster size. |
id |
: the ID for each individual in the cluster. |
family |
: the specified "exponential" family for GLMs. The default is |
corstr |
: the specified "working correlation" structure. The default is |
B_null |
: model matrix under the null model. |
nb |
: a logical argument, is the model a negative binomial model? The default is |
is.gee |
: a logical argument, is this a GEE model? The default is |
... |
: further arguments passed to or from other methods. |
The null model used here is by definition the current parent model. We compare the alternative model (a new basis function combined with the parent) with the null model. In the code used, only the null model is fit (the dispersion parameter is also estimated for GEE) and then the score statistic is obtained.
stat_out_score_null
returns a list of values (mainly products of matrices) that make up the final score statistic calculation (required for another function).
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.
stat_out
and stat_out_score_glm_null
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.