get_type_prob: Get type probabilities

View source: R/get_type_prob.R

get_type_probR 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


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