Learn R Programming

poliscidata (version 2.3.0)

fit.svyglm: Calculates model fit statistics for a svyglm weighted regression model

Description

Model fit statistics for a svyglm weighted regression model

Usage

fit.svyglm(svyglm, digits = 3)

Arguments

svyglm

An object of type svyglm. This object is the output of the svyglm functon.

digits

Number of digits to report after decimal place, optional (default = 3).

Value

Returns a numeric vector of R-Squared and Adjusted R-sSquared statistics.

Examples

Run this code
# NOT RUN {
   library(poliscidata)
   
   obamaThermModel <- svyglm(obama_therm ~ gender, design=nesD, na.action="na.omit")
   summary(obamaThermModel)
   fit.svyglm(obamaThermModel)
# }

Run the code above in your browser using DataLab