https://github.com/cran/brms
Raw File
Tip revision: 6e5288e2153739ef0575dcc167a34a02f1830b4c authored by Paul-Christian Bürkner on 16 September 2018, 15:40:03 UTC
version 2.5.0
Tip revision: 6e5288e
prior_summary.brmsfit.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brmsfit-methods.R
\name{prior_summary.brmsfit}
\alias{prior_summary.brmsfit}
\alias{prior_summary}
\title{Extract Priors of a Bayesian Model Fitted with \pkg{brms}}
\usage{
\method{prior_summary}{brmsfit}(object, all = TRUE, ...)
}
\arguments{
\item{object}{A \code{brmsfit} object}

\item{all}{Logical; Show all parameters in the model which may have 
priors (\code{TRUE}) or only those with proper priors (\code{FALSE})?}

\item{...}{Further arguments passed to or from other methods.}
}
\value{
For \code{brmsfit} objects, an object of class \code{brmsprior}.
}
\description{
Extract Priors of a Bayesian Model Fitted with \pkg{brms}
}
\examples{
\dontrun{
fit <- brm(count ~ log_Age_c + log_Base4_c * Trt_c  
             + (1|patient) + (1|obs), 
           data = epilepsy, family = poisson(), 
           prior = c(prior(student_t(5,0,10), class = b),
                     prior(cauchy(0,2), class = sd)))
                   
prior_summary(fit)
prior_summary(fit, all = FALSE)
print(prior_summary(fit, all = FALSE), show_df = FALSE)
}

}
back to top