Learn R Programming

RCPA3 (version 1.3.1)

fit.svyglm: 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)

Value

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

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

Examples

Run this code
   library(RCPA3)
   
   # \donttest{
   ft.police.model <- regC(ft.police ~ race.ethnicity, w=wt, data=nes)
   fit.svyglm(ft.police.model)
   # }

Run the code above in your browser using DataLab