I want to compare the correlation coefficient between the order of income and the order of risk across different vegetables grown. The income and risk go from 1 to 5; 1 being the highest level of income and the highest level of risk and 5 being the lowest level of income and lowest level of risk. I want to compare income vs risk relationship for each variable. I want a table with vegetables in one column and a correlation coefficient between income and risk in the other. I could have used bysort option to subset the vegetable, but the list of vegetables is very very long, and bysort returns the stored result for the last subset only. Could anybody kindly suggest how this could be done? Thanks!!
-
Login or Register
- Log in with
Comment