Draw a single causal type given a parameter vector
Draw a single causal type given a parameter vector
Output is a parameter data frame recording both parameters (case level priors) and the case level causal type.
draw_causal_type(model,...)
Arguments
model: A causal_model. A model object generated by make_model.
...: Arguments passed to set_parameters
Examples
# Simple draw using model's parameter vectormake_model("X -> M -> Y")|>draw_causal_type()# Draw parameters from priors and draw type from parametersmake_model("X -> M -> Y")|>draw_causal_type(, param_type ="prior_draw")# Draw type given specified parametersmake_model("X -> M -> Y")|>draw_causal_type(parameters =1:10)