get_parameters: Get parameters

Description Usage Arguments Value See Also Examples

View source: R/set_parameters.R

Description

Extracts parameters as a named vector

Usage

1
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

1

CausalQueries documentation built on July 1, 2020, 7:46 p.m.