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
Using coefplot to plot the effect of categorical variable with interactionDear Statalist users, I wondered if you could help me with this issue in particular. I am running …
Sorting string variable fromDear All, I'm having hassle sorting a string variable. Even after using the Code: sort code, the en…
number of records teffects matching estimators use to estimate effectsHow can I identify the number of records at each treatment level the teffects matching estimators us…
sample used by teffects matching estimatorsDoes the teffects suite of commands include a command showing how many records at each treatment lev…
matching FrontierI wonder if anyone has attempted a Stata version of the matching Frontier program of King et al. The…
Subscribe to:
Post Comments (Atom)
0 Response to Using return matrix from polychoric correlation
Post a Comment