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

Description Usage Arguments Value Examples

View source: R/fit.svyglm.r

Description

Model fit statistics for a svyglm weighted regression model

Usage

1
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

1
2
3
4
5
   library(poliscidata)
   
   obamaThermModel <- svyglm(obama_therm ~ gender, design=nesD, na.action="na.omit")
   summary(obamaThermModel)
   fit.svyglm(obamaThermModel)

Example output

Call:
svyglm(formula = ...)

Survey design:
survey::svydesign(id = ~1, data = nes, weights = ~wt)

Coefficients:
             Estimate Std. Error t value Pr(>|t|)    
(Intercept)   53.4405     0.8619  62.001  < 2e-16 ***
genderFemale   5.7769     1.2349   4.678 2.97e-06 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for gaussian family taken to be 1166.301)

Number of Fisher Scoring iterations: 2

$R2
[1] 0.007

$adjR2
[1] 0.007

poliscidata documentation built on July 8, 2020, 6:23 p.m.