Examples for 'broom::augment.rlm'


Augment data with information from a(n) rlm object

Aliases: augment.rlm

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("MASS", quietly = TRUE)) {

# load libraries for models and data
library(MASS)

# fit model
r <- rlm(stack.loss ~ ., stackloss)

# summarize model fit with tidiers
tidy(r)
augment(r)
glance(r)

}
Attaching package: 'MASS'
The following object is masked from 'package:rcloud.support':

    select
# A tibble: 1 × 7
  sigma converged logLik     AIC   BIC deviance  nobs
  <dbl> <lgl>     <logLik> <dbl> <dbl>    <dbl> <int>
1  2.44 TRUE      -52.954   116.  121.     191.    21

[Package broom version 0.8.0 Index]