Description Usage Arguments Value Note Author(s) See Also Examples
Extract all possible paths from one variable to another connected component in a latent variable model. In an estimated model the effect size is decomposed into direct, indirect and total effects including approximate standard errors.
1 2 3 4 |
object |
Model object ( |
to |
Outcome variable (string). Alternatively a formula specifying
response and predictor in which case the argument |
from |
Response variable (string), not necessarily directly affected by
|
silent |
Logical variable which indicates whether messages are turned on/off. |
... |
Additional arguments to be passed to the low level functions |
If object
is of class lvmfit
a list with the following
elements is returned
idx |
A list where each element defines a possible pathway via a integer vector indicating the index of the visited nodes. |
V |
A List of covariance matrices for each path. |
coef |
A list of parameters estimates for each path |
path |
A list where each element defines a possible pathway via a character vector naming the visited nodes in order. |
edges |
Description of 'comp2' |
If object
is of class lvm
only the path
element will be
returned.
The effects
method returns an object of class effects
.
For a lvmfit
-object the parameters estimates and their
corresponding covariance matrix are also returned. The
effects
-function additionally calculates the total and indirect
effects with approximate standard errors
Klaus K. Holst
1 2 3 4 5 6 7 8 9 10 11 12 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.