BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DHINESHSHANKAR0
Fluorite | Level 6

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;

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

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;

 

View solution in original post

2 REPLIES 2
Rick_SAS
SAS Super FREQ

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;

 

DHINESHSHANKAR0
Fluorite | Level 6

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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 1402 views
  • 0 likes
  • 2 in conversation