get_type_prob {CausalQueries}R Documentation

Get type probabilities

Description

Gets probability of vector of causal types given a single realization of parameters, possibly drawn from model priors.

Usage

get_type_prob(model, P = NULL, parameters = NULL)

Arguments

model

A causal_model. A model object generated by make_model.

P

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

parameters

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

Details

By default, parameters is drawn from 'using' argument (either from priors, posteriors, or from model$parameters)

Value

A vector with probabilities of vector of causal types


[Package CausalQueries version 1.1.1 Index]