Description Usage Arguments Details Value Author(s) References See Also Examples
Derives the matrix of total effects \mathbf{E}.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
A |
|
check |
Logical.
If |
... |
... |
exe |
Logical.
If |
R |
Logical.
If |
format |
Character string.
Only used when |
simplify |
Logical. Simplify symbolic results. |
The matrix of total effects \mathbf{E} as a function of Reticular Action Model (RAM) matrices is given by
\mathbf{E} = ≤ft( \mathbf{I} - \mathbf{A} \right)^{-1}
where
\mathbf{A}_{t \times t} represents asymmetric paths (single-headed arrows), such as regression coefficients and factor loadings, and
\mathbf{I}_{t \times t} represents an identity matrix.
\mathbf{E} = ≤ft( \mathbf{I} - \mathbf{A} \right)^{-1}
Ivan Jacob Agaloos Pesigan
McArdle, J. J., & McDonald, R. P. (1984). Some algebraic properties of the Reticular Action Model for moment structures. British Journal of Mathematical and Statistical Psychology, 37 (2), 234–251. https://doi.org/10.1111/j.2044-8317.1984.tb00802.x
Other RAM matrices functions:
C()
,
Expectations()
,
IminusA()
,
M()
,
RAMScaled()
,
S()
,
g()
,
u()
,
v()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # Numeric -----------------------------------------------------------
# This is a numerical example for the model
# y = alpha + beta * x + e
# y = 0 + 1 * x + e
#--------------------------------------------------------------------
A <- matrixR::ZeroMatrix(3)
A[1, ] <- c(0, 1, 1)
colnames(A) <- rownames(A) <- c("y", "x", "e")
E(A)
# Symbolic ----------------------------------------------------------
# This is a symbolic example for the model
# y = alpha + beta * x + e
# y = 0 + 1 * x + e
#--------------------------------------------------------------------
A <- matrixR::ZeroMatrix(3)
A[1, ] <- c(0, "beta", 1)
E(Ryacas::ysym(A))
E(Ryacas::ysym(A), format = "str")
E(Ryacas::ysym(A), format = "tex")
E(Ryacas::ysym(A), R = TRUE)
# Assigning values to symbols
beta <- 1
E(Ryacas::ysym(A))
E(Ryacas::ysym(A), format = "str")
E(Ryacas::ysym(A), format = "tex")
E(Ryacas::ysym(A), R = TRUE)
eval(E(Ryacas::ysym(A), R = TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.