get_parameters {CausalQueries}R Documentation

Get parameters

Description

Extracts parameters as a named vector

Usage

get_parameters(model, param_type = NULL)

Arguments

model

A causal_model. A model object generated by make_model.

param_type

A character. String specifying type of parameters to set ('flat', 'prior_mean', 'posterior_mean', 'prior_draw', 'posterior_draw', 'define'). With param_type set to define use arguments to be passed to make_priors; otherwise flat sets equal probabilities on each nodal param_type in each parameter set; prior_mean, prior_draw, posterior_mean, posterior_draw take parameters as the means or as draws from the prior or posterior.

Value

A vector of draws from the prior or distribution of parameters

See Also

Other parameters: make_parameters(), set_parameters()

Examples

get_parameters(make_model('X -> Y'))

[Package CausalQueries version 0.0.3 Index]