Skip to contents

Create a `n_param`x `n_draws` database of possible lambda draws to be attached to the model.

Usage

make_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

Examples

make_model('X -> Y') |>
  CausalQueries:::make_prior_distribution(n_draws = 5)
#>         X.0       X.1        Y.00       Y.10       Y.01       Y.11
#> 1 0.8047115 0.1952885 0.209407029 0.04041752 0.25288099 0.49729446
#> 2 0.1400343 0.8599657 0.062242290 0.54350084 0.03433703 0.35991985
#> 3 0.2874679 0.7125321 0.069542589 0.41144723 0.20527940 0.31373079
#> 4 0.1233613 0.8766387 0.000144946 0.65323979 0.03619363 0.31042163
#> 5 0.1826057 0.8173943 0.447497031 0.24762783 0.22545001 0.07942514