Print summary for brsmm models
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),
id = factor(rep(1:4, each = 5))
)
prep <- brs_prep(dat, ncuts = 100)
#> brs_prep: n = 20 | exact = 0, left = 1, right = 1, interval = 18
fit <- brsmm(y ~ x1, random = ~ 1 | id, data = prep)
print(summary(fit))
#>
#> Call:
#> brsmm(formula = y ~ x1, random = ~1 | id, data = prep)
#>
#> Randomized Quantile Residuals:
#> Min 1Q Median 3Q Max
#> -2.0610 -0.4800 -0.1662 0.6831 2.7746
#>
#> Coefficients (mean model with logit link):
#> Estimate Std. Error z value Pr(>|z|)
#> (Intercept) 0.4214 0.9437 0.447 0.655
#> x1 -0.3375 0.5737 -0.588 0.556
#>
#> Phi coefficients (precision model with logit link):
#> Estimate Std. Error z value Pr(>|z|)
#> (Intercept) -0.5804 0.3272 -1.774 0.0761 .
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
#>
#> Random-effects parameters (Cholesky scale):
#> Estimate Std. Error z value Pr(>|z|)
#> logSD.(Intercept)|id -0.6277 0.7619 -0.824 0.41
#> ---
#> Mixed beta interval model (Laplace)
#> Observations: 20 | Groups: 4
#> Log-likelihood: -92.1831 on 4 Df | AIC: 192.3663 | BIC: 196.3492
#> Pseudo R-squared: 0.0029
#> Number of iterations: 27 (BFGS)
#> Censoring: 18 interval | 1 left | 1 right
#>
# }
