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.41588039 0.5841196 0.56598931 0.02811673 0.3402269777 0.06566699
#> 2 0.96712880 0.0328712 0.23643165 0.04141221 0.0742041463 0.64795199
#> 3 0.05279612 0.9472039 0.05068654 0.14339369 0.1165216927 0.68939808
#> 4 0.89567004 0.1043300 0.24272664 0.23944969 0.0001148733 0.51770879
#> 5 0.49769844 0.5023016 0.31718139 0.06899746 0.3951565483 0.21866460