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.47 0.34
#> X.1  0.53 0.34
#> Y.00 0.20 0.17
#> Y.10 0.37 0.18
#> Y.01 0.30 0.19
#> Y.11 0.14 0.10