Package: betaregscale 3.0.0

betaregscale: Beta Regression for Interval-Censored Scale-Derived Outcomes

Maximum-likelihood estimation of beta regression models for responses derived from bounded rating scales. Observations are treated as interval-censored on (0, 1) after a scale-to-unit transformation, and the likelihood is built from the difference of the beta CDF at the interval endpoints. The complete likelihood supports mixed censoring types: uncensored, left-censored, right-censored, and interval-censored observations. Both fixed- and variable-dispersion submodels are supported, with flexible link functions for the mean and precision components. A compiled C++ backend (via 'Rcpp' and 'RcppArmadillo') provides numerically stable, high-performance log-likelihood evaluation. Standard S3 methods (print(), summary(), coef(), fitted(), residuals(), predict(), plot(), confint(), vcov(), logLik(), AIC(), BIC()) are available for fitted objects.

Authors:José Evandeilton Lopes [aut, cre], Wagner Hugo Bonat [aut]

betaregscale_3.0.0.tar.gz
betaregscale_3.0.0.zip(r-4.7-x86_64)betaregscale_3.0.0.zip(r-4.7-arm64)betaregscale_3.0.0.zip(r-4.6-x86_64)betaregscale_3.0.0.zip(r-4.6-arm64)betaregscale_3.0.0.zip(r-4.5-x86_64)
betaregscale_3.0.0.tgz(r-4.6-x86_64)betaregscale_3.0.0.tgz(r-4.6-arm64)betaregscale_3.0.0.tgz(r-4.5-x86_64)betaregscale_3.0.0.tgz(r-4.5-arm64)
betaregscale_3.0.0.tar.gz(r-4.7-arm64)betaregscale_3.0.0.tar.gz(r-4.7-x86_64)betaregscale_3.0.0.tar.gz(r-4.6-arm64)betaregscale_3.0.0.tar.gz(r-4.6-x86_64)
betaregscale_3.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
betaregscale/json (API)

# Install 'betaregscale' in R:
install.packages('betaregscale', repos = c('https://evandeilton.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/evandeilton/betaregscale/issues

Pkgdown/docs site:https://evandeilton.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

beta-mappingbeta-regressionnrs-101nrs-11nrs21openblascpp

5.28 score 1 stars 12 scripts 373 downloads 24 exports 21 dependencies

Last updated from:5cc371403c. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK211
linux-devel-x86_64OK181
source / vignettesOK303
linux-release-arm64OK178
linux-release-x86_64OK182
macos-release-arm64OK133
macos-release-x86_64OK256
macos-oldrel-arm64OK141
macos-oldrel-x86_64OK229
windows-devel-arm64OK253
windows-devel-x86_64OK238
windows-release-arm64OK270
windows-release-x86_64OK208
windows-oldrel-x86_64OK184
wasm-releaseOK144

Exports:autoplot.brsautoplot.brs_bootstrapautoplot.brs_marginaleffectsautoplot.brsmmbrsbrs_bootstrapbrs_censbrs_checkbrs_coefbrs_cvbrs_estbrs_fit_fixedbrs_fit_varbrs_gofbrs_hessianbrs_marginaleffectsbrs_predict_scoreprobbrs_prepbrs_reparbrs_simbrs_tablebrsmmbrsmm_re_studyranef

Dependencies:clicpp11farverFormulaggplot2gluegtableisobandlabelinglifecyclenumDerivR6RColorBrewerRcppRcppArmadillorlangS7scalesvctrsviridisLitewithr

Advanced Workflows for High-Level Users
Audience and scope | 1) Reproducible simulation and data checks | 2) Fixed-effects candidate set and model ranking | 3) Inference stack: Wald + bootstrap + AME | 4) Prediction layer on analyst scale | 5) Out-of-sample validation | 6) Escalation to mixed models | 6.1 Simulate clustered data with random intercept + slope | 6.2 Fit evolutionary sequence | 6.3 Model choice by LLR/LRT (ANOVA) | 7) Random-effects study (numeric + visual) | 8) A Monte Carlo study (design of Lopes, 2023, ch. 3) | 9) Practical decision checklist | References

Last update: 2026-09-29
Started: 2026-02-17

Analyst Tools for betaregscale
Overview | Mathematical foundations | Complete likelihood by censoring type | Model-comparison metrics | Average marginal effects (AME) | Score-scale probabilities | Cross-validation log score | Reproducible workflow | 1) Simulate data and fit candidate models | 2) Compare models in one table | 3) Estimate average marginal effects | 4) Predict score probabilities | 5) ggplot2 diagnostics | 6) Repeated k-fold cross-validation | Practical interpretation | References

Last update: 2026-09-29
Started: 2026-02-16

Introduction to betaregscale
Overview | Installation | The score scale and ncuts | Likelihood and censoring types | Interval construction | Data preparation with brs_prep() | Mode 1: Score only (automatic) | Mode 2: Score + explicit censoring indicator | Mode 3: Interval endpoints with NA patterns | Mode 4: Analyst-supplied intervals | Using brs_prep with brs() | Example 1: Fixed dispersion model | Simulating data | Fitting the model | Estimation and fit diagnostics | Goodness of fit | Comparing link functions | Residual diagnostics | Predictions | Confidence intervals | Censoring structure | Example 2: Variable dispersion model | Accessing coefficients by submodel | Comparing link functions (variable dispersion) | Diagnostics for variable dispersion | Advanced analyst functions | Parametric bootstrap confidence intervals | Average marginal effects (AME) | Score probabilities on the original scale | Repeated k-fold cross-validation | S3 methods reference | Reparameterizations | References

Last update: 2026-09-29
Started: 2026-02-16

Mixed-Effects Beta Interval Regression with brsmm
Overview | Mathematical model | Linear predictors | Beta parameterization | Conditional contribution by censoring type | Random-effects distribution | Group marginal likelihood | Laplace approximation used by brsmm() | Other integration methods and estimation details | Simulating clustered scale data | Fitting brsmm() | Random intercept + slope example | Additional studies of random effects (numerical and visual) | Core methods | Coefficients and random effects | Variance-covariance, summary and likelihood criteria | Fitted values, prediction and residuals | Diagnostic plotting methods | Prediction with newdata | Statistical tests and validation workflow | Wald tests (from summary) | Evolutionary scheme and Likelihood Ratio (LR) test selection | Residual diagnostics (quick checks) | Parameter recovery experiment | How this maps to automated package tests | References

Last update: 2026-09-29
Started: 2026-02-16

Readme and manuals

Help Manual

Help pageTopics
Akaike information criterionAIC.brs
AIC for brsmm modelsAIC.brsmm
Likelihood-ratio comparison of nested beta interval modelsanova.brs
Likelihood-ratio comparison involving mixed modelsanova.brsmm
ggplot2 autoplot for brs modelsautoplot.brs
ggplot2 autoplot for bootstrap resultsautoplot.brs_bootstrap
ggplot2 autoplot for marginal effectsautoplot.brs_marginaleffects
ggplot2 autoplot for brsmm modelsautoplot.brsmm
Bayesian information criterionBIC.brs
BIC for brsmm modelsBIC.brsmm
Fit a beta interval regression modelbrs
Parametric bootstrap confidence intervals for brs modelsbrs_bootstrap print.brs_bootstrap
Graphical and tabular censoring summarybrs_cens
Map scale scores to intervals on (0, 1) and censoring typesbrs_check
Internal coefficient table (deprecated, use brs_est() or summary())brs_coef
K-fold cross-validation for brs modelsbrs_cv
Coefficient estimates with inferencebrs_est
Goodness-of-fit measuresbrs_gof
Extract the Hessian matrixbrs_hessian
Marginal effects for brs modelsbrs_marginaleffects
Predict score probabilities from a fitted brs modelbrs_predict_scoreprob
Pre-process analyst data for beta interval regressionbrs_prep
Beta shape parameters from the parameters of each schemebrs_repar
Simulate data from beta interval modelsbrs_sim
Compare fitted brs models in a single tablebrs_table
Fit a mixed-effects beta interval regression modelbrsmm
Random-effects study for brsmm modelsbrsmm_re_study
Extract model coefficientscoef.brs
Extract coefficients from a brsmm fitcoef.brsmm
Wald confidence intervalsconfint.brs
Wald confidence intervals for brsmm modelsconfint.brsmm
Extract fitted valuesfitted.brs
Fitted values from a brsmm modelfitted.brsmm
Extract model formulaformula.brs
Extract model formulaformula.brsmm
Extract log-likelihoodlogLik.brs
Log-likelihood for brsmm modelslogLik.brsmm
Extract design matrixmodel.matrix.brs
Extract design matrixmodel.matrix.brsmm
Number of observationsnobs.brs
Number of observations in a brsmm fitnobs.brsmm
Diagnostic plots for beta interval regressionplot.brs
Diagnostic plots for mixed beta interval regressionplot.brsmm
Predict from a fitted modelpredict.brs
Predict from a brsmm modelpredict.brsmm
Print a fitted model (brief betareg style)print.brs
Print a fitted brsmm modelprint.brsmm
Print a random-effects studyprint.brsmm_re_study
Print a model summary (betareg style)print.summary.brs
Print summary for brsmm modelsprint.summary.brsmm
Extract random effectsranef
Extract random effects from a brsmm modelranef.brsmm
Residuals of a fitted beta interval modelresiduals.brs
Residuals from a brsmm modelresiduals.brsmm
Summarize a fitted beta interval modelsummary.brs
Summarize a fitted brsmm modelsummary.brsmm
Variance-covariance matrix of estimated coefficientsvcov.brs
Variance-covariance matrix for brsmm coefficientsvcov.brsmm