Learn R Programming

CausalQueries (version 0.0.3)

get_prior_distribution: 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

Run this code
# NOT RUN {
make_model('X -> Y') %>% set_prior_distribution(n_draws = 5) %>% get_prior_distribution()
make_model('X -> Y') %>% get_prior_distribution(3)

# }

Run the code above in your browser using DataLab