get_type_prob_multiple {CausalQueries}R Documentation

Draw matrix of type probabilities, before or after estimation

Description

Draw matrix of type probabilities, before or after estimation

Usage

get_type_prob_multiple(
  model,
  using = "priors",
  parameters = NULL,
  n_draws = 4000,
  param_dist = NULL
)

Arguments

model

A causal_model. A model object generated by make_model.

using

A character. It indicates whether to use 'priors', 'posteriors' or 'parameters'.

parameters

A vector of real numbers in [0,1]. Values of parameters to specify (optional). By default, parameters is drawn from model$parameters_df.

n_draws

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

param_dist

A matrix. Distribution of parameters. Optional for speed.

Value

A matrix of type probabilities.

Examples

model <- make_model('X -> Y')
get_type_prob_multiple(model, using = 'priors', n_draws = 3)
get_type_prob_multiple(model, using = 'parameters', n_draws = 3)

[Package CausalQueries version 0.0.3 Index]