295 questions
1 vote
0 answers
71 views
R's psych::mixedCor gives error: invalid value of 'nbins'
I have a data frame with 108 explanatory and 4 potential outcome variables. I want to get correlation matrix of these variables. With such a code: psych::mixedCor( dplyr::select(df, -c(...
Advice
0 votes
1 replies
70 views
R - Interrater Reliability
I am working on the psychometric evaluation of a questionnaire. In this questionnaire employees are rating the unit they work in. So I am interested in interrater reliability, that is how much do ...
3 votes
1 answer
89 views
Error "x must be numeric" on numeric variables when using histBy()
I'm trying to draw histograms of a DV (minutes) for each level of the IV (group) using the histBy function in the {psych} package. My dataset contains 3 variables, all of which are numeric. There are ...
0 votes
1 answer
70 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
138 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
1 answer
69 views
Issues with weighting in principal of psych
I am trying to replicate a principal component analysis in R based on one I have performed in SPSS. I am using the psych package and the principal function, but I cannot get it to account for the ...
1 vote
1 answer
83 views
Summary of numeric variable with missing values
Is there a R package that give me summary statistics of a numeric variable which include the percentage of missing values? I have tried the built-in summary, Hmisc describe and psych describe, but non ...
1 vote
1 answer
102 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 ...
2 votes
1 answer
123 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
627 views
Install ruby 3.3.x with rvm, missing psych gym
I'm installing ruby 3.3.x with rvm by rvm install 3.3.5, no apparent error shown. However, I noticed psych gem folder is empty,even though it's there in the gem list as psych 5.1.2. this causing ...
1 vote
1 answer
53 views
Extract scores from EFA by observation to uses as predictor variable
I am working on an EFA (Exploratory Factor Analysis) using the psych package. I would like to extract the scores from the result of this EFA at the observation level, so I can use them as an ...
2 votes
1 answer
140 views
How to weight principal componets by their variance?
I'm following the paper New ECOSTRESS and MODIS Land Surface Temperature Data Reveal Fine-Scale Heat Vulnerability in Cities: A Case Study for Los Angeles County, California, and I quote: In ...
3 votes
1 answer
270 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 ...
1 vote
1 answer
62 views
R for-loop reverting back to previous values [closed]
I am attempting to simulate data using the simstudy package and then calculate coefficient omega with the psych package. I am using for-loops to run through different values for within cluster ...
0 votes
0 answers
117 views
Psych gem dependancy failed
In my new windows pc i am setting up new rails application but while executing bundle install Psych dependancy is failed and i am stuck in this i have tried many solution but it didn't worked well if ...