fit.svyglm {RCPA3}R Documentation

Calculates model fit statistics for a svyglm linear regression model

Description

Model fit statistics for a svyglm weighted linear regression model (not for weighted logistic regression).

Usage

fit.svyglm(svyglm, digits = 3)

Arguments

svyglm

An object of type svyglm. This object is the output of the svyglm function as well as regC function with w argument.

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

   library(RCPA3)
   
   
   ft.police.model <- regC(ft.police ~ race.ethnicity, w=wt, data=nes)
   fit.svyglm(ft.police.model)
   

[Package RCPA3 version 1.3.1 Index]