Learn R Programming

wgeesel (version 1.5)

WRsquare.gee: Weighted R Square for WGEE

Description

Calculate the weighted \(R^2\) (missing longitudinal information criterion) for selection of mean model.

Usage

WRsquare.gee(object, weight_mean)

Arguments

object

a fitted model object of class "wgee".

weight_mean

logical; whether weighted mean of the response should be used for weighted R square.

Value

Return a list of weighted R square.

References

Nelder, J.A. and Baker, R.J., 1972. Generalized linear models. Encyclopedia of statistical sciences.

See Also

wgee

Examples

Run this code
# NOT RUN {
data(imps)

fit <- wgee(Y ~ Drug+Sex+Time, data=imps, id=imps$ID, family="binomial",
            corstr="exchangeable",scale=NULL,mismodel= R ~ Drug+Time)
WRsquare.gee(fit, weight_mean=TRUE)
# }

Run the code above in your browser using DataLab