get_type_prob_multiple: Draw matrix of type probabilities, before or after estimation

View source: R/get_type_prob.R

get_type_prob_multipleR 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,
  P = 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.

P

A data.frame. Parameter matrix. Not required but may be provided to avoid repeated computation for simulations.

Value

A matrix of type probabilities.


CausalQueries documentation built on June 22, 2024, 6:50 p.m.