mmLSTrf | R Documentation |
A function to estimate Multi-Method Latent-State-Trait Random-Fixed SEM models based on the MM-LST-RF model developed by Hintz, Geiser & Shiffman, 2019.
mmLSTrf(
data,
nSit = 2,
nTime = 2,
nMth = 2,
structural = "TF",
includeOMF = TRUE,
lat.cov = list(TFcov = FALSE, OFcov = FALSE, TMFcov = FALSE, OMFcov = FALSE),
meanstructure = FALSE,
meas.invar = "time.invar",
equiv.ass = list(TF = "cong", OF = "cong", OMF = "cong"),
addsyntax = "",
...
)
data |
Data frame. |
nSit |
Integer. Default = 2. |
nTime |
Integer. Default = 2. |
nMth |
Integer. Default = 2. |
structural |
Character string. Default =
|
includeOMF |
Logical. Default = |
lat.cov |
List. Default =
It is recommended to estimate covariances sparingly (especially for TMF) as
this quickly inflates the amount of free model parameters.
For the estimation of only a select number of covariances, specifications
can be passed to the function via the |
meanstructure |
Logical. Default = |
meas.invar |
Character string. Default =
|
equiv.ass |
List. Default =
For TF the following additional equivalence assumptions can be made:
No equivalence assumptions need to be specified for TMF since they are defined as residual latent variables and all loadings are automatically fixed to one due to the combination of identification requirements and time invariance. |
addsyntax |
Character string. |
... |
Further arguments passed to |
Data Structure:
The order of the indicators Y_imts (i = indicator, m = method, t = time-point
/occasion, s = fixed situation) need to match the following format:
Y_1111, Y_2111, Y_1211, Y_2211, Y_1121, Y_2121, Y_1221, Y_2221, Y_1112, etc.
This format reflects the order of indicator variables in a path diagram where
indicators are first grouped by fixed situations, within those they are then
grouped by occasions and within those they are lastly grouped by methods.
The resulting nested structure has indicators nested within methods, nested
within occasions, nested within fixed situations.
The number of fixed situations, occasions (time-points), methods and number of indicators can take any value >= 2. However, the model is restricted to an equal number of indicators for each method, occasion and fixed situation. For example, if method A has 3 indicators, method B must also have 3 indicators. Accordingly, if there are 2 methods with 3 indicators each, every occasion will have 6 indicators (3 from each method). In the same vein, the number of methods needs to be equal across occasions and the number of occasions needs to be equal across fixed situations. Lastly, only one Trait Factor is estimated per fixed situation.
Syntax notation:
Example for Y_2132 with i = 2, m = 1, t = 3, s = 2 (covariances with s = 3)
Variable / Parameter | Notation | Example |
Trait factors (TF) | Ts | T2 |
Occasion factors (OF) | Ots | O32 |
Trait-method factors (TMF) | TMims | TM212 |
Occasion-method factors (OMF) | OMmts | OM132 |
TF mean | M_Ts | M_T2 |
TF variance | V_Ts | V_T2 |
OF variance | V_Ots | V_O32 |
OMF variance | V_OMmts | V_OM132 |
TMF variance | V_TMims | V_TM212 |
Observed variable variance | V_Y_imts | V_(variable name) |
TF covariance | Cv_TaxTb | Cv_T2xT3 |
OF covariance | Cv_OaxOb | Cv_O32xO33 |
TMF covariance | Cv_TMaxTMb | Cv_TM212xTM213 |
OMF covariance | Cv_OMaxOMb | Cv_OM132xOM133 |
Residual variance epsilon | eps_imts | eps_2132 |
Intercept alpha | alph_ims | alph_212 |
Loading lambda | lam_ims | lam_212 |
Loading delta | del_ims | del_212 |
Loading gamma | gam_ims | gam_212 |
Difference TF | Dif_Ts | Dif_T2 |
Regression intercept (TF) | b0_Ts | b0_T2 |
Regression slope beta (TF) | b1_Ts | b1_T2 |
Residual variance omega (TF) | omg_Ts | omg_T2 |
Difference TMF | Dif_TMims | Dif_TM212 |
Regression slope beta (TMF) | b1_TMims | b1_T212 |
Residual variance omega (TMF) | omg_TMims | omg_T212 |
Commonality TF | Com_Ts | Com_T2 |
Fixed situation specificity TF | SitSp_Ts | SitSp_T2 |
Commonality TMF | Com_TMims | Com_TM212 |
Fixed situation specificity TMF | SitSp_TMims | SitSp_TM212 |
Observed variable reliability | RelY_imts | Rel(variable name) |
Observed variable consistency | ConY_imts | Con(variable name) |
Observed variable specificity | SpeY_imts | Spe(variable name) |
Note that for difference and commonality variables the fixed reference situation is always s = 1.
Object of class mmLSTrf.
Tinhof Dora
Hintz F., Geiser C., & Shiffman S. (2019). A latent state-trait model for analyzing states, traits, situations, method effects, and their interactions. Journal of Personality (1-21). https://doi.org/10.1111/jopy.12400
modelfit <- mmLSTrf(mmLSTrf_exampledata, nSit=2, nTime=3, nMth=2, structural="TF",
includeOMF=TRUE, lat.cov=list(TFcov=FALSE, OFcov=FALSE,
TMFcov=FALSE, OMFcov=FALSE), meanstructure=TRUE,
meas.invar="scalar.b", equiv.ass=list(TF="ess.par",
OF="ess.equiv", OMF="ess.equiv"), addsyntax="")
print(modelfit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.