set_prior_distribution {CausalQueries}R Documentation

Add prior distribution draws

Description

Add 'n_param x n_draws' database of possible lambda draws to the model.

Usage

set_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

An object of class causal_model. It essentially returns a list containing the elements comprising a model (e.g. 'statement', 'nodal_types' and 'DAG') with the 'prior_distribution' attached to it.

See Also

Other prior_distribution: get_prior_distribution(), make_prior_distribution()

Examples

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


[Package CausalQueries version 0.0.3 Index]