Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

WRsquare

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.

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

Examples

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

Weighted Generalized Estimating Equations and Model Selection

v1.5
GPL-2
Authors
Cong Xu <congxu17@gmail.com>, Zheng Li <zheng.li@outlook.com>, Ming Wang <mwang@phs.psu.edu>
Initial release
2018-03-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.