View source: R/make_matrices.R
make_matrices | R Documentation |
Constructs path matrices for dynamic structural equation model (DSEM) using a vector of parameters and specification of the DSEM
make_matrices(beta_p, model, times, variables)
beta_p |
vector parameters. |
model |
matrix or data.frame with the following columns, and one row per one-headed or two-headed arrow in the dynamic structural model:
|
times |
integer-vector of times to use when defining matrices |
variables |
character-vector listing variables |
When length(times)
is T
and length(variables)
is J
,
make_matrices
returns matrices of dimension TJ \times TJ
representing
paths among vec(\mathbf{X})
where matrix \mathbf{X}
has dimension
T \times J
and vec
stacks columns into a single long vector
A named list of matrices including:
The matrix of interactions, i.e., one-headed arrows
The matrix of exogenous covariance, i.e., two-headed arrows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.