Releases: stan-dev/rstanarm
rstanarm v2.32.2
What's Changed
- Update recommendations for responding to convergence warnings by @jgabry in #617
- Replace Stan R Packages repo with R-Universe by @andrjohns in #624
- Fix mistaken ')' alignment in output test by @MichaelChirico in #636
- Default to not computing r_eff for loo by @jgabry in #638
- migrate formula machinery from lme4 to reformulas by @bbolker in #639
- Fix documentations to address CRAN NOTEs by @yoshidk6 in #641
- Use vectorized abs() by @HPCurtis in #632
- Use rstantools - Fix Build/Export Errors by @andrjohns in #625
New Contributors
- @MichaelChirico made their first contribution in #636
- @bbolker made their first contribution in #639
- @yoshidk6 made their first contribution in #641
- @HPCurtis made their first contribution in #632
Full Changelog: v2.32.1...v2.32.2
rstanarm v2.32.1
What's Changed
- Avoid error for 1-D unit_vector by @jgabry in #606
- Update .set_nreps by @avehtari in #612
- Use LTO during compilation
Full Changelog: v2.26.1...v2.32.1
rstanarm v2.26.1
This release updates rstanarm to use the latest syntax supported by rstan.
What's Changed
- wells dataset wrong variable name by @storopoli in #552
- add logo to be displayed in r-universe by @avehtari in #569
- Fix CRAN NOTEs and failures by @andrjohns in #587
- Implement posterior::as_draws() for rstanarm objects by @jgabry in #596
- Array syntax by @bgoodri in #597
Full Changelog: v2.21.3...v2.26.1
rstanarm v2.21.3
Bug fixes
-
Fix bug where
loo()withk_thresholdargument specified would error if the model formula was a string instead of a formula object. (#454) -
Fix bug where
loo()withk_thresholdargument specified would error for
models fit withstan_polr(). (#450) -
Fix bug where
stan_aov()would use the wrongsingular.oklogic. (#448) -
Fix bug where contrasts info was dropped when subsetting the model matrix in
stan_glm(). (#459) -
Fix bug where
stan_glmer()would error ifprior_aux=NULL. (#482) -
posterior_predict()andposterior_epred()don't error withnewdatafor
intercept only models by allowing data frames with 0 columns and multiple rows. (#492)
New features
-
New vignette on AB testing. (#409)
-
stan_jm()gains an offset term for the longitudinal submodel. (#415, @pamelanluna) -
Effective number of parameters are computed for K-fold CV not just LOO CV. (#462)
-
stan_clogit()now allows outcome variable to be a factor. (#520)
rstanarm v2.21.1
rstanarm 2.21.1
- Compatible with rstan v2.21.1
- Consistent with new book Regression and Other Stories
Backwards incompatible changes
-
stan_jm()is not available for 32bit Windows -
Some improvements to prior distributions, as described in detail in the vignette
Prior Distributions for rstanarm Models and book Regression and Other Stories.
These changes shouldn't cause any existing code to error, but default priors have
changed in some cases:- default prior on intercept is still Gaussian but the way the location and
scale are determined has been updated (#432) autoscaleargument to functions likenormal(),student_t(), etc.,
now defaults toFALSEexcept when used by default priors (default
priors still do autoscalinng). This makes it simpler to specify non-default
priors. (#432)
- default prior on intercept is still Gaussian but the way the location and
Bug fixes
- Fixed error in
kfold()forstan_gamm4()models that usedrandomargument (#435) - Fixed error in
posterior_predict()andposterior_linpred()when usingnewdatawith
family = mgcv::betar(#406, #407) singular.oknow rules out singular design matrices instan_lm()(#402)- Fix a potential error when
datais adata.tableobject (#434, @danschrage)
New functions
-
New method
posterior_epred()returns the posterior distribution of the
conditional expectation, which is equivalent to (and may eventually entirely
replace) setting argumenttransform=TRUEwithposterior_linpred(). (#432) -
Added convenience functions
logit()andinvlogit()that are just wrappers
forqlogis()andplogis(). These were previously provided by thearm
package. (#432)
v2.19.2
rstanarm version 2.19.2 is now on CRAN. Binaries have been built so it should be possible to install via
install.packages("rstanarm")Release notes are available on the rstanarm website at http://mc-stan.org/rstanarm/news/
v2.14.1
Bug fixes
VarCorrcould return duplicates in cases where astan_{g}lmermodel used grouping
factors with spaces. This is now fixed.- The
pairsfunction now also allows with group-specific parameters - The
stan_gamm4function works better now (see issues #136, #132) - Fix a problem with factor levels after estimating a model via
stan_lm
New features
- New model-fitting function
stan_betareg(andstan_betareg.fit) that uses the same likelihoods as those supported by thebetaregfunction in the betareg package - New choices for priors on regression coefficients:
laplace,lasso,product_normal - The
hsandhs_pluspriors now have newglobal_dfandglobal_scalearguments stan_{g}lmermodels that only have group-specific intercept shifts are considerably
faster now- Models with Student t priors and low degrees of freedom (that are not 1, 2, or 4) may work better now due to Cornish-Fisher transformations
- Many functions for priors (e.g.,
normal,student_t, etc.) have gained anautoscale
argument that defaults toTRUEand indicates that rstanarm should make internal changes to the prior based on the scales of the variables. This doesn't change previous behavior, just replaces the former mechanism for controlling this (used to be thescaledargument to the now deprecatedprior_optionsfunction). - The new
compare_modelsfunction is a wrapper forloo::comparethat does more extensive checking that the rstanarm models being compared are compatible - New
prior_auxargument allow specifying priors for auxiliary parameters. Previously it was only possible to set the scale for the prior on auxiliary parameters (e.g., residual sd for Gaussian, shape for Gamma, etc.). With theprior_auxargument it is now possible to useexponential,normal,student_t, orcauchyfor auxiliary parameters.
Deprecated arguments
- The
prior_opsargument to various model fitting functions is deprecated and theprior_optionsfunction used to specify theprior_opsargument is also depredated. The functionality ofprior_optionshas been replaced by theautoscaleargument to the functions for setting priors as well as theprior_auxargument for for the prior on the auxiliary parameter of various GLM-like models.