View source: R/set_parameter_matrix.R
set_parameter_matrix | R Documentation |
Add a parameter matrix to a model
set_parameter_matrix(model, P = NULL)
model |
A |
P |
A |
An object of class causal_model
. It essentially returns a
list containing the elements comprising a model
(e.g. 'statement', 'nodal_types' and 'DAG') with the parameter matrix
attached to it.
model <- make_model('X -> Y')
P <- diag(8)
colnames(P) <- rownames(model$causal_types)
model <- set_parameter_matrix(model, P = P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.