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) autoscale
argument to functions likenormal()
,student_t()
, etc.,
now defaults toFALSE
except 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 usedrandom
argument (#435) - Fixed error in
posterior_predict()
andposterior_linpred()
when usingnewdata
with
family = mgcv::betar
(#406, #407) singular.ok
now rules out singular design matrices instan_lm()
(#402)- Fix a potential error when
data
is adata.table
object (#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=TRUE
withposterior_linpred()
. (#432) -
Added convenience functions
logit()
andinvlogit()
that are just wrappers
forqlogis()
andplogis()
. These were previously provided by thearm
package. (#432)