https://github.com/cran/bayestestR
Raw File
Tip revision: 79b3ea026adbb877bc1921a9cf1ea0eae067cb63 authored by Dominique Makowski on 12 February 2024, 11:40:02 UTC
version 0.13.2
Tip revision: 79b3ea0
unupdate.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unupdate.R
\name{unupdate}
\alias{unupdate}
\alias{unupdate.stanreg}
\alias{unupdate.brmsfit}
\alias{unupdate.brmsfit_multiple}
\alias{unupdate.blavaan}
\title{Un-update Bayesian models to their prior-to-data state}
\usage{
unupdate(model, verbose = TRUE, ...)

\method{unupdate}{stanreg}(model, verbose = TRUE, ...)

\method{unupdate}{brmsfit}(model, verbose = TRUE, ...)

\method{unupdate}{brmsfit_multiple}(model, verbose = TRUE, newdata = NULL, ...)

\method{unupdate}{blavaan}(model, verbose = TRUE, ...)
}
\arguments{
\item{model}{A fitted Bayesian model.}

\item{verbose}{Toggle warnings.}

\item{...}{Not used}

\item{newdata}{List of \code{data.frames} to update the model with new data.
Required even if the original data should be used.}
}
\value{
A model un-fitted to the data, representing the prior model.
}
\description{
As posteriors are priors that have been updated after observing some data,
the goal of this function is to un-update the posteriors to obtain models
representing the priors. These models can then be used to examine the prior
predictive distribution, or to compare priors with posteriors.
}
\details{
This function in used internally to compute Bayes factors.
}
\keyword{internal}
back to top