prior_post_values: Extracting the prior and posterior distributions from...

Description Usage Arguments Value

View source: R/prior_post_values.r

Description

This functions extract the posterior distribution values from a brmsfit-object and simulates the prior distribution values (mean and standard deviation of priors need to be provided). This function is still very much in development and is meant to interact with prior_post_plot. Use at your own risk!

Usage

1
2
3
4
5
6
7
8
prior_post_values(
  object,
  var_names = NULL,
  post_effects = NULL,
  prior_means = NULL,
  prior_sd = NULL,
  n_sim = 10000
)

Arguments

object

An object of class brmsfit.

var_names

Optional a vector that includes new names for the effects (variables) that should be extracted.

post_effects

Which effect should be extracted?

prior_means

What are means of the prior distributions (needs to be in the same order as the post_effects)?

n_sim

How many values should be simulated for the prior distributions (at best, this number is close to the effective sample size)

Value

A tibble.


masurp/pmstats documentation built on Oct. 6, 2020, 9:24 p.m.