Learn R Programming

CausalQueries (version 0.0.3)

make_par_values_multiple: Make par values multiple

Description

Internal function to create parameter vector when list like arguments are provided

Usage

make_par_values_multiple(
  model,
  y = get_priors(model),
  x = NA,
  distribution = NA,
  node = NA,
  label = NA,
  statement = NA,
  confound = NA,
  nodal_type = NA,
  param_names = NA,
  param_set = NA,
  normalize = FALSE
)

Arguments

model

A model created with make_model

y

Vector of real non negative values to be changed

x

Vector of real non negative values to be substituted into y

distribution

String indicating a common prior distribution (uniform, jeffreys or certainty)

node

A string indicating nodes for which priors are to be altered

label

String. Label for nodal type indicating nodal types for which priors are to be altered

statement

A causal query that determines nodal types for which priors are to be altered

confound

A confound statement that restricts nodal types for which priors are to be altered

nodal_type

String. Label for nodal type indicating nodal types for which priors are to be altered

param_names

String. The name of specific parameter in the form of, for example, 'X.1', 'Y.01'

param_set

String. Indicates the name of the set of parameters to be modified (useful when setting confounds)

normalize

Logical. If TRUE normalizes such that param set probabilities sum to 1.

See Also

Other priors: get_priors(), make_par_values(), make_priors(), make_values_task_list(), set_priors()