204 questions
0
votes
0
answers
13
views
How to fix "correlation larger than 1" in longitudinal invariance with ordered-categorical measures using Marker Variable method
I am investigating the longitudinal measurement invariance of a socio-emotional learning (SEL) measure (5 factors, 2 waves) using lavaan and the WLSMV estimator. I am following the identification ...
1
vote
0
answers
45
views
sklearn's FactorAnalysis varimax orthogonal rotation increases correlation of factors
I'm using Scikit-Learn's FactorAnalysis in an application that relies on the assumption that the factors are uncorrelated. It would be great to have more interpretable factors, and an orthogonal ...
0
votes
0
answers
33
views
factor analysis, loadings not as expected
I ran an exploratory factor analysis in SPSS. There are supposed to be 9 items( factors) however the loadings are not as expected. The survey is a 5 point likert and all are quite highly rated. ...
2
votes
0
answers
109
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
1
answer
68
views
How do you interpret the different lines on a Very Simple Structure plot? And extract the values to feed into a ggplot?
For my factor analysis, I first created a scree plot and then a Very Simple Structure (VSS) plot to help discern the appropriate number of factors to retain.
Using the psych package, here's my code to ...
0
votes
0
answers
129
views
Variable names not fully displayed when using psych::fa.diagram for plotting
Using the example from the psych package:
library(psych)
# ? fa.diagram
f3 <- fa(Thurstone, 3, rotate="cluster")
fa.diagram(f3, cut=.4, digits=2)
f3l <- f3$loadings
fa.diagram(f3l, ...
1
vote
2
answers
169
views
R Error in psych::polychoric() "Error in cor(x, use = "pairwise") : supply both 'x' and 'y' or a matrix-like 'x'"
I'm trying to run psych::polychoric(), but each time I get this error:
Error in cor(x, use = "pairwise") :
supply both 'x' and 'y' or a matrix-like 'x'
I'm struggling to understand why my &...
0
votes
0
answers
65
views
How to run an EFA on multiple imputed datasets (in R)?
I imputed 20 datasets with the mice package to deal with missing data. An example of the code I used to impute is:
imp2 <- mice(merged_data, m = 20, maxit = 10,
predictorMatrix = ...
0
votes
0
answers
29
views
Reverse scoring and summing items that were treated with multiple imputation
I am using multiple imputation to handle missingness in my dataset of 83 variables across 250 participants. I intend to use 12 of these variables, which comprise a self-compassion questionnaire, in a ...
1
vote
1
answer
98
views
Checking convergence in the results returned by the psych fa() function?
I am writing a function that will use the fa() function from the "psych" package. When fa() fails to converge, I want my function to discard the results and return an empty plot that just ...
0
votes
0
answers
60
views
How to perform a confirmatory factor analysis
I am trying to perform a confirmatory factor analysis in R based on a data set in data.frame form. For that, I would like to calculate the loading factor (\lambda), the construct reliability (CR) and ...
2
votes
1
answer
116
views
Psych library: factor analysis not convergence with mixed data
I want to compute factor analysis with mixed data (i.e., continous, categorical and binary) but I have a lot of warnings and it does not converge resulting in Nans ( objective num NaN,
criteria NaN NA ...
0
votes
1
answer
52
views
How to use R package modelsummary to produce a factanal summary table
The modelsummary::supported_models() includes factanal objects, to purportedly produce a summary table of a factor analysis model.
However, the following two attempts fail
library(modelsummary)
...
3
votes
1
answer
266
views
Why do the factor loadings from R's fa() and factanal() functions differ when using the promax rotation?
I tried to use factanal() from base R and fa() from the psych package to perform a factor analysis on data from a questionnaire with same response scale for each question.
Why do I obtain different ...
0
votes
0
answers
157
views
Why am I seeing negative factor loadings when using the factor-analyzer module in pandas and limiting the model to 1 factor?
I am trying to learn how to perform factor analysis in Pandas using the factor-analyzer module. I'm checking my work by running the same analysis in Stata.
The initial, exploratory factor analysis ...