Skip to content

Commit

Permalink
prepare for the release of version 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Aug 15, 2017
1 parent 04dcc3e commit 2c89829
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: brms
Encoding: UTF-8
Type: Package
Title: Bayesian Regression Models using Stan
Version: 1.8.0.2
Version: 1.9.0
Date: 2017-07-19
Authors@R: person("Paul-Christian", "Bürkner", email = "paul.buerkner@gmail.com",
role = c("aut", "cre"))
Expand Down
11 changes: 10 additions & 1 deletion R/brmsfit-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -2347,7 +2347,9 @@ update.brmsfit <- function(object, formula., newdata = NULL,
object$formula <- dots$formula
dots$formula <- NULL
}
bterms <- parse_bf(object$formula, family = object$family)
bterms <- with(object,
parse_bf(formula, family = family, autocor = autocor)
)
object$data <- update_data(dots$data, bterms = bterms)
if (!is.null(newdata)) {
object$data.name <- Reduce(paste, deparse(substitute(newdata)))
Expand Down Expand Up @@ -2876,6 +2878,13 @@ bridge_sampler.brmsfit <- function(samples, ...) {
"usable in method 'bridge_sampler'."
)
}
if (is.cor_car(samples$autocor)) {
warning2(
"Some constants were dropped from the log-posterior ",
"of CAR models so that the output of 'bridge_sampler' ",
"may not be valid."
)
}
sample_prior <- attr(samples$prior, "sample_prior")
if (isTRUE(sample_prior %in% c("yes", "only"))) {
stop2(
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
27 changes: 26 additions & 1 deletion inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
\title{brms News}
\encoding{UTF-8}

\section{CHANGES IN VERSION 1.8.0++}{
\section{CHANGES IN VERSION 1.9.0}{
\subsection{NEW FEATURES}{
\itemize{
\item Perform model comparisons based on
marginal likelihoods using the methods
\code{bridge_sampler}, \code{bayes_factor},
and \code{post_prob} all powered by the
\pkg{bridgesampling} package.
\item Compute a Bayesian version of R-squared
with the \code{bayes_R2} method.
\item Specify non-linear models for all
distributional parameters.
\item Combine multiple model formulas using
Expand All @@ -28,8 +30,31 @@
\item Refactor parts of the package to prepare
for the implementation of more flexible
multivariate models in future updates.
\item Keep all constants in the log-posterior
in order for \code{bridge_sampler} to be
working correctly.
\item Reduce the amount of renaming done
within the \code{stanfit} object.
\item Rename argument \code{auxpar} of
\code{fitted.brmsfit} to \code{dpar}.
\item Use the \code{launch_shinystan} generic
provided by the \pkg{shinystan} package.
\item Set \code{bayesplot::theme_default()}
as the default \pkg{ggplot2} theme when
attaching \pkg{brms}.
\item Include citations of the \pkg{brms}
overview paper as published in the
Journal of Statistical Software.
}
}
\subsection{BUG FIXES}{
\itemize{
\item Fix problems when calling \code{fitted}
with \code{hurdle_lognormal} models thanks to
Meghna Krishnadas.
\item Fix problems when predicting \code{sigma}
in \code{asym_laplace} models thanks to
Anna Josefine Sorensen.
}
}
}
Expand Down

0 comments on commit 2c89829

Please sign in to comment.