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
Comparing regressions using dummy variable as categoryHi guys, I'd like to test whether monthly log-return volatility is stronger during recessionary per…
Combining two datasets on two variables.Hello, I have one dataset (called Natural Disaster) with three variables: Year, CountryCode, and Tot…
Hetroskedasticity test Hausman-Taylor estimationDear all, Does anyone know how to perform a heteroskedasticity test (not a graphical one) with pane…
Panel data difference-in-difference with different treatment timingHi all, I'm trying to study whether the decline in birth rates had an impact on GDP on a national l…
reshape long errorDear Readers I try to reshape long and get: Code: .. di `"`_vars'"' num0_ num_size00_ num_size10_…
Subscribe to:
Post Comments (Atom)
0 Response to Using return matrix from polychoric correlation
Post a Comment