Learn R Programming

CausalQueries (version 1.3.2)

make_prior_distribution: Make a prior distribution from priors

Description

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)

Value

A `data.frame` with dimension `n_param`x `n_draws` of possible lambda draws

Arguments

model

A causal_model. A model object generated by make_model.

n_draws

A scalar. Number of draws.

Examples

Run this code
make_model('X -> Y') |>
  CausalQueries:::make_prior_distribution(n_draws = 5)

Run the code above in your browser using DataLab