WRsquare: Weighted R Square for WGEE

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1
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.

Author(s)

Zheng Li, Cong Xu and Ming Wang

References

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

See Also

wgee

Examples

1
2
3
4
5
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)

wgeesel documentation built on May 2, 2019, 3:41 a.m.