Learn R Programming

CausalQueries (version 1.3.2)

set_prior_distribution: Add prior distribution draws

Description

Add `n_param x n_draws` database of possible parameter draws to the model.

Usage

set_prior_distribution(model, n_draws = 4000)

Value

An object of class causal_model with the `prior_distribution` attached to it.

Arguments

model

A causal_model. A model object generated by make_model.

n_draws

A scalar. Number of draws.

See Also

Other set: set_confound(), set_restrictions()

Examples

Run this code
make_model('X -> Y') |>
  set_prior_distribution(n_draws = 5) |>
  inspect("prior_distribution")

Run the code above in your browser using DataLab