Hey everyone,
I am fairly new to STATA, and rate myself as a beginner at this point. I am currently running the 'pcorr' command to get age-adjusted correlations for some variables of mine. A sample command line for my work would be, 'pcorr Distal_CCA mpcinco Age'. The results table I get consists of 5 columns; the first column (partial correlation) and 5th column (significance value) are the only 2 result sections I care about. Is there a way to automatically transfer the results I care about into cells in Excel?
If my first question is possible, then I have a follow up to it. I have to run that similar command about 25 times, each time changing the location of the "mpcinco" variable with another variable. Is it possible to now run all the pcorr age-adjusted correlations at one time and transfer all the sections I care about into the Excel file? This would be much better than running the pcorr command for one variable, then the command to move it to Excel, followed by running another pcorr command and the command to move it to Excel, and again 23 more times.
I am fairly new to STATA, and rate myself as a beginner at this point. I am currently running the 'pcorr' command to get age-adjusted correlations for some variables of mine. A sample command line for my work would be, 'pcorr Distal_CCA mpcinco Age'. The results table I get consists of 5 columns; the first column (partial correlation) and 5th column (significance value) are the only 2 result sections I care about. Is there a way to automatically transfer the results I care about into cells in Excel?
If my first question is possible, then I have a follow up to it. I have to run that similar command about 25 times, each time changing the location of the "mpcinco" variable with another variable. Is it possible to now run all the pcorr age-adjusted correlations at one time and transfer all the sections I care about into the Excel file? This would be much better than running the pcorr command for one variable, then the command to move it to Excel, followed by running another pcorr command and the command to move it to Excel, and again 23 more times.

Comment