327 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
106
views
Multiple-Group Factor Analysis Alignment in R - need to extract the factor scores
I'm trying to setup a factor which measures (it's just an example) trust in institutions. The data was registered in more than 10 regions and it would be important to have the same factor structure in ...
0
votes
0
answers
76
views
How to include paths between time-invariant predictors in a RI-CLPM in a code using lavaan?
In a RI-CLPM with three time-invariant predictors I would like to include paths between the predictors using lavaan (R package).
There are two observed variables at three measurement points (x1, x2, ...
3
votes
1
answer
289
views
Why am I getting dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent?
So I am trying to run an SEM with the code below:
(Btw, I have zero background in R and I just read and watched videos on how to run it for my Phd. So Please bear with me with this question)
library(...
1
vote
0
answers
46
views
summary() of MICE imputation in SEM analysis
I am using the mice and semTools packages to impute missing data for my SEM dataset. However, the summary() only gives me unstandardized coefficients, but I like to have p-values and fit indices.
For ...
0
votes
0
answers
41
views
Lavaan Multigroup CFA configural invariance
I am having some problems getting Lavaan to actually do the analysis for configural invariance in a multigroup CFA.
I have 2 groups: gender1 0 = men, women1 1 = women.
My model is a 2-factor model, ...
0
votes
2
answers
876
views
Lavann model estimation failed
So I started using lavaan and sem() today. Worked fine with a couple of constructs/latent variables and a single regression model. However, lavaan now fails. Even when I tried to remove the new ...
0
votes
1
answer
82
views
R: How would I use lavaan in R to create a latent longitudinal growth curve model with a binary outcome?
I am specifying a latent longitudinal growth curve model in R with multiple time-invariant covariates. However, my outcome is binary (0/1). I read through the growth() function documentation, but didn'...
1
vote
1
answer
212
views
UTAUT model in lavaan: "modifier label specified multiple times"
I am trying to perform an UTAUT model with the help of lavaan in Rstudio. In particular testing hypothesis such as:
H2 <- '
EE =~ V10+V11+V12
BI =~ V28+V29+V30
BI ~ EE + V43*EE + V45*EE + V43 + ...
2
votes
0
answers
65
views
Poor Recovery of Factor Loadings and Covariances in R Using Monte Carlo in Tidyverse
I am using secondary data to build a measurement model in R and, for proof of concept, I am trying to simulate data from this measurement model and fit it to the original model to show that it will ...
0
votes
1
answer
183
views
Robust estimators for lavaan::cfa fails to converge (data strongly violates multivariate normality)
Problem Introduction
Hi everyone,
I’m working with a clean dataset of N = 724 participants who completed a personality test based on the HEXACO model. The test is designed to measure 24 sub-components ...
0
votes
1
answer
310
views
Random effects lavaan
I am running a sem() model and I am trying to include a random effects.
Dataframe:
test <- data.frame(Person = c("a", "a","a", "b", "b", "b&...
1
vote
0
answers
36
views
R - Adding manifest exogenous variable to SEM leads to error
I am new to SEM, and some help would be very appreciated.
I want to specify a model with one latent endogenous variable (indicators are all ordinal), five latent exogenous variables (indicators are ...
0
votes
0
answers
112
views
How to obtain standardized residuals for clustered data in lavaan?
I am facing a problem concerning the output of standardized residuals for a fitted lavaan (sem)-object. As far as I do not include "cluster = " in the fitting function, I can easily obtain the ...
1
vote
1
answer
301
views
Encountered lav_object_summary Error while running CFA
This is my code:
DATA <- read_excel("FINAL DATA.xlsx")
CFA1 <-'
F1 =~ Q1 + Q2 + Q3 + Q4
F2 =~ Q5 + Q6 + Q7 + Q8
F3 =~ Q9 + Q10 + Q11 + Q12
F4 =~ ...
0
votes
1
answer
202
views
How to calculate effect sizes for predictors in lavaan regression model?
Is there a way to calculate an effect size for each predictor in a lavaan model like this?
(lavaan in this example is just used to be able to use FIML, otherwise it's a simple linear regression)
model ...