Custom fitting function to add GEE model with cluster variable to parsnip GEE function call.
Arguments
- formula
Normal formula but uses the
gee_formula()
internal function for theid_var()
specification for clustering.- data
Modeling data
- family
a family object: a list of functions and expressions for defining link and variance functions. Families supported in gee are
gaussian
,binomial
,poisson
,Gamma
, andquasi
; see theglm
andfamily
documentation. Some links are not currently available:1/mu^2
andsqrt
have not been hard-coded in thecgee
engine at present. The inverse gaussian variance function is not available. All combinations of remaining functions can be obtained either by family selection or by the use ofquasi.
- ...
For additional parameters
Details
gee()
always prints out warnings and output even when
silent = TRUE
. gee_fit()
will never produce output, even if
silent = FALSE
.
Also, because of issues with the gee()
function, a supplementary call to
glm()
is needed to get the rank and QR decomposition objects so that
predict()
can be used.