Examples for 'broom::glance.svyglm'


Glance at a(n) svyglm object

Aliases: glance.svyglm

Keywords:

### ** Examples


# feel free to ignore the following line—it allows {broom} to supply 
# examples without requiring the model-supplying package to be installed.
if (requireNamespace("survey", quietly = TRUE)) {

# load libraries for models and data
library(survey)

set.seed(123)
data(api)

# survey design
dstrat <-
  svydesign(
    id = ~1,
    strata = ~stype,
    weights = ~pw,
    data = apistrat,
    fpc = ~fpc
  )

# model
m <- svyglm(
  formula = sch.wide ~ ell + meals + mobility,
  design = dstrat,
  family = quasibinomial()
)

glance(m)

}
Loading required package: grid
Loading required package: Matrix
Loading required package: survival
Attaching package: 'survey'
The following object is masked from 'package:graphics':

    dotchart
# A tibble: 1 × 7
  null.deviance df.null   AIC   BIC deviance df.residual  nobs
          <dbl>   <int> <dbl> <dbl>    <dbl>       <dbl> <int>
1          184.     199  184.  199.     178.         194   200

[Package broom version 0.8.0 Index]