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
STATA slowness or problems in my data?Dear STATA users, I am writing to ask for a general opinion on STATA. I am running a logistic multil…
Is it possible to combine binscatter and vioplot?Vioplot works on categorial x axis. binscatter makes continuous, discrete. I am looking to have a hi…
anycountDear all I would like to count the number of values across 5 numeric variables. I tried using "anyc…
Coefplot graph error despite running the regressionI'm supposed to get a coefplot graph using the following data and code but unfortunately I'm coming …
Help obtaining number of previous appearances of unique ID within designated timeframeHello all, I have a "date" variable and an "ID" variable for a number of observations. I want to g…
Subscribe to:
Post Comments (Atom)
0 Response to Using return matrix from polychoric correlation
Post a Comment