Hello all,
I am using stata version 17.
I ran a polychoric correlation on about 100 variables.
The correlation matrix is returned in the matrix list r(R).
I would like to use this matrix as a dataset and drop values less than 0.3.
Does anyone know how I can do that directly in stata? So far, all I have is the following:
polychoric 'list of var'
return list
matrix list r(R) // estimated correlation matrix
matrix poly= r(R) // I tried this to save the matrix as a separate dataset, but the cells are empty so that's wrong.
svmat2 double poly, names(col) rnames(rows) full // This works, but poly is empty. So the data does not appear.
I exported the matrix in excel as well to do what I wanted, but I am wondering if there's a direct way in stata. Grateful if anyone knows how to do this. I am trying to improve my stata skills. Thank you!
Related Posts with Using return matrix from polychoric correlation
Setting up dataset for rds_networkHi, I need to create the respondent-driven sampling variables identifying recruits from two variabl…
groups within groupsDear all, I hope my post finds you well I have a question concerning panel data. I am currently w…
How to merge two panel data sets?Dear Statalist members, I want to merge two panel data sets. One contains information regarding 200…
GSEM mediation: Limitations in assessing model fitGreetings, I'm running Stata 15.1 on OSX and working with cross-sectional survey data. I'm trying t…
Prediction graphDear community! I have a task to produce a graph of three realistic scenarios for health spending (i…
Subscribe to:
Post Comments (Atom)
0 Response to Using return matrix from polychoric correlation
Post a Comment