make_values_task_list {CausalQueries}R Documentation

Make values task list

Description

A function to generate a list of parameter arguments.

Usage

make_values_task_list(
  distribution = NA,
  x = NA,
  node = NA,
  label = NA,
  statement = NA,
  confound = NA,
  nodal_type = NA,
  param_names = NA,
  param_set = NA
)

Arguments

distribution

A string (or list of strings) indicating a common prior distribution (uniform, jeffreys or certainty)

x

Real positive numbers. For priors these are hyperparameters of the Dirichlet distribution. For parameters these are probabilities.

node

A string (or list of strings) indicating nodes for which priors are to be altered

label

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

statement

A causal query (or list of queries) that determines nodal types for which priors are to be altered

confound

A confound named list that restricts nodal types for which priors are to be altered. Adjustments are limited to nodes in the named list.

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)

Value

An array of parameter arguments.

For instance confound = list(X = Y[X=1]> Y[X=0]) adjust parameters on X that are conditional on nodal types for Y.

See Also

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

Examples

CausalQueries:::make_values_task_list(node = 'X', x = 3)
CausalQueries:::make_values_task_list(node = c('X', 'Y'), x = 2:3)
CausalQueries:::make_values_task_list(node = c('X', 'Y'), x = list(1, 2:4))

[Package CausalQueries version 0.0.3 Index]