Hi ,
I was trying to use STORE the CORR results in SAS studio , is this possible . I am getting error.
proc corr data=statdata.fitness rank nosimple 58 plots(only)=matrix (nvar = all histogram) ; 59 60 var RunTimeAgeWeightRun_Pulse Oxygen_ConsumptionRest_PulseMaximum_PulsePerformance; 61 62 store out = test1; _____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 63 run; 64 ods graphics off; 65 66 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
Your error is because the STORE statement is not a valid statement in PROC CORR.
Yes, the STORE statement works for procedures that support it:
proc logistic data=sashelp.class;
model sex = height weight;
store out=LogiModel;
run;
Your error is because the STORE statement is not a valid statement in PROC CORR.
Yes, the STORE statement works for procedures that support it:
proc logistic data=sashelp.class;
model sex = height weight;
store out=LogiModel;
run;
Thank you Rick for confirming . I further went thro the documentation and found that in the proc option the out dataset can be saved instead of store option. Snap shot from the SAS documentation.
"If you specify the OUTP=, OUTS=, OUTK=, or OUTH= option, PROC CORR creates an output data set
that contains statistics for Pearson correlation, Spearman correlation, Kendall’s tau-b, or Hoeffding’s D,
respectively."
proc corr data=statdata.fitness rank outh=test1; var runtime age weight ; with oxygen_consumption; run;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.