get_param_dist: Get a distribution of model parameters

View source: R/get_type_prob.R

get_param_distR Documentation

Get a distribution of model parameters

Description

Using parameters, priors, or posteriors

Usage

get_param_dist(model, using, n_draws = 4000)

Arguments

model

A causal_model. A model object generated by make_model.

using

A character string. Indicates whether to use 'priors', 'posteriors' or 'parameters'.

n_draws

An integer. If no prior distribution is provided, generate prior distribution with n_draws number of draws.

Value

A matrix with the distribution of the parameters in the model

Examples

get_param_dist(model = make_model('X->Y'), using = 'priors', n_draws = 4)
get_param_dist(model = make_model('X->Y'), using = 'parameters')

CausalQueries documentation built on Oct. 20, 2023, 1:06 a.m.