Hi Using SAS studio on Mac and have a few questions using Correlation task: I have a total of 8 analysis variables (below) that I wish to correlate with several other variables. MRI_mean ser_lut1 ser_lut2 ser_lut3 ser_lut4 ser_lut5 ser_zea diet_lut_zea In addition, I also want to correlate the sum of ser_lut1-5 and call it "ser_total_lut" and the sum of ser_lut1 and ser_zea and call it "ser_lut1_zea". After submitting the program for correlation analysis. I went to the edit the code and tried the function ser_total_lut=sum (ser_lut1, ser_lut2, ser_lut3, ser_lut4, ser_lut5) and ser_lut1_zea=sum (ser_lut1, ser_zea) after the var statement like below: proc corr data=LIBREF.FILENAME pearson spearman rank plots=matrix(histogram); var MRI_mean ser_lut1 ser_lut2 ser_lut3 ser_lut4 ser_lut5 ser_total_lut=sum (ser_lut1, ser_lut2, ser_lut3, ser_lut4, ser_lut5) ser_lut1_zea=sum (ser_lut1, ser_zea) ser_zea diet_lut_zea; with OCL1 OCL2 OCL3 OCL4; run; I wasn't sure whether or not to add commas in between variables in the parentheses so I ran with and without and got the same error message: Any help on what I'm doing wrong? ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 200-322: The symbol is not recognized and will be ignored. Lastly, I wish to log transform 2 variables (ser_lut1 and ser_lut2) before running correlation analysis. How would I do there? Where does the code go? Sorry for all the questions...still a newbie here. THANKS! J
... View more