Skip to contents

Summarize a fitted model (betareg style)

Usage

# S3 method for class 'brs'
summary(object, ...)

Arguments

object

A fitted "betaregscale" object.

...

Ignored.

Value

A list of class "summary.betaregscale".

Examples

# \donttest{
dat <- data.frame(
  y = c(
    0, 5, 20, 50, 75, 90, 100, 30, 60, 45,
    10, 40, 55, 70, 85, 25, 35, 65, 80, 15
  ),
  x1 = rep(c(1, 2), 10)
)
prep <- brs_prep(dat, ncuts = 100)
#> brs_prep: n = 20 | exact = 0, left = 1, right = 1, interval = 18
fit <- brs(y ~ x1, data = prep)
s <- summary(fit)
s$coefficients$mean
#>               Estimate Std. Error    z value  Pr(>|z|)
#> (Intercept)  0.2550945  0.8643907  0.2951148 0.7679062
#> x1          -0.2202075  0.5411943 -0.4068917 0.6840875
# }