grab | R Documentation |
Returns specified elements from a causal_model
.
Users can use grab
to extract model's components or objects implied by
the model structure including nodal types, causal types, parameter priors,
parameter posteriors, type priors, type posteriors, and other relevant elements.
See argument object
for other options.
grab(model, object = NULL, ...)
model |
A |
object |
A character string specifying the component to retrieve. Available options are:
|
... |
Other arguments passed to helper |
Objects from a causal_model
as specified.
model <-
make_model('X -> Y') |>
update_model(
keep_event_probabilities = TRUE,
keep_fit = TRUE,
refresh = 0 )
grab(model, object = "causal_statement")
grab(model, object = "dag")
grab(model, object = "nodes")
grab(model, object = "parents_df")
grab(model, object = "parameters_df")
grab(model, object = "causal_types")
grab(model, object = "causal_types_interpretation")
grab(model, object = "nodal_types")
grab(model, object = "data_types")
grab(model, object = "event_probabilities")
grab(model, object = "ambiguities_matrix")
grab(model, object = "parameters")
grab(model, object = "parameter_names")
grab(model, object = "parameter_mapping")
grab(model, object = "parameter_matrix")
grab(model, object = "prior_hyperparameters")
grab(model, object = "prior_distribution")
grab(model, object = "posterior_distribution")
grab(model, object = "posterior_event_probabilities")
grab(model, object = "stan_objects")
grab(model, object = "data")
grab(model, object = "stan_fit")
grab(model, object = "stan_summary")
grab(model, object = "type_prior")
grab(model, object = "type_distribution")
# Example of arguments passed on to helpers
grab(model,
object = "event_probabilities",
parameters = c(.6, .4, .1, .1, .7, .1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.