All,
I'm VERY new at STATA and I've tried searching but nothing seems to give me a correct answer when I try it. I'm also sure this is very basic for many so please forgive me. I'm trying to get the correlation between a few items, with one variable having two subsets.
Example:
my league variable as 0, 1 for identifiers (0 is for the American League and 1 for the National League) I have the salary total in millions salarymil, wins, batting, era, hr.
For the league as a whole I type in
corr league salarymil wins batting era hr
Which I get that information as expected, but the trouble I'm having where I keep getting errors is trying to break it out into something like
corr league_0 league_1 salarymil wins batting era hr
I get errors, so can anyone just help with the correct commands?
Thank you in advance.
I'm VERY new at STATA and I've tried searching but nothing seems to give me a correct answer when I try it. I'm also sure this is very basic for many so please forgive me. I'm trying to get the correlation between a few items, with one variable having two subsets.
Example:
my league variable as 0, 1 for identifiers (0 is for the American League and 1 for the National League) I have the salary total in millions salarymil, wins, batting, era, hr.
For the league as a whole I type in
corr league salarymil wins batting era hr
Which I get that information as expected, but the trouble I'm having where I keep getting errors is trying to break it out into something like
corr league_0 league_1 salarymil wins batting era hr
I get errors, so can anyone just help with the correct commands?
Thank you in advance.
Comment