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

View source: R/helper.functions.r

fit.svyglmR 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)
   

RCPA3 documentation built on May 29, 2024, 12:19 p.m.

Related to fit.svyglm in RCPA3...