get_prior_distribution: Get a prior distribution from model

View source: R/set_prior_distribution.R

get_prior_distributionR Documentation

Get a prior distribution from model

Description

Access the prior distribution from the model if one has been added via 'set_prior_distribution'. Otherwise call 'make_prior_distribution' to generate and return an 'n_draws x n_param' prior distribution.

Usage

get_prior_distribution(model, n_draws = 4000)

Arguments

model

A causal_model. A model object generated by make_model.

n_draws

A scalar. Number of draws.

Value

A 'data.frame' with dimension 'n_param'x 'n_draws' of possible lambda draws

See Also

Other prior_distribution: make_prior_distribution(), set_prior_distribution()


CausalQueries documentation built on June 22, 2024, 6:50 p.m.