Skip to contents

Add `n_param x n_draws` database of possible parameter 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 with the `prior_distribution` attached to it.

See also

Examples

make_model('X -> Y') |>
  set_prior_distribution(n_draws = 5) |>
  inspect("prior_distribution")
#> 
#> prior_distribution
#> Summary statistics of model parameters prior distributions:
#> 
#>   Distributions matrix dimensions are 
#>   5 rows (draws) by 6 cols (parameters)
#> 
#>      mean   sd
#> X.0  0.35 0.30
#> X.1  0.65 0.30
#> Y.00 0.27 0.30
#> Y.10 0.17 0.07
#> Y.01 0.21 0.14
#> Y.11 0.35 0.21