get_prior_distribution {CausalQueries}R Documentation

Get a prior distribution from priors

Description

Add to the model a 'n_draws x n_param' matrix of possible parameters.

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()

Examples

make_model('X -> Y') %>% set_prior_distribution(n_draws = 5) %>% get_prior_distribution()
make_model('X -> Y') %>% get_prior_distribution(3)


[Package CausalQueries version 0.0.3 Index]