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

dear all, 

I have to compute skewness, kurtosis and standard deviation of stocks of 100 companies. 

And also, to save the values in the separate file stock-wise. 

 

the input data format is as follows 

 

DateX1X2X3………..X100
1-Jan-180.27-1.33-1.77………..-0.33
2-Jan-18-1.060.17-0.06………..-2.15
3-Jan-180.17-1.63-0.54………..0.32
4-Jan-18-0.10.722.26………..0.93
5-Jan-180.60.473.45………..3.25
8-Jan-180.39-0.131.23………..-4.38
9-Jan-18-0.03-0.98-0.94………..-1.27
10-Jan-18-0.44-1.11-0.95………..-0.67
11-Jan-18-0.72-0.44-1.21………..1.65
12-Jan-18-0.65-0.57-0.58………..-1.01
15-Jan-180.98-0.29-1.8………..-0.99
16-Jan-180.47-0.19-2.92………..-1.44
17-Jan-183.911.080.82………..0.53
18-Jan-18-0.070.22-2.38………..-0.98
19-Jan-180.930.292.48………..0.59
22-Jan-183.6120.26………..-1.45
23-Jan-181.40.660.14………..0.29
24-Jan-18-1.961.381.78………..-6.62
25-Jan-181.34-0.89-1.66………..-1.48
29-Jan-18-1.711.580.29………..-2.67
30-Jan-18-1.95-0.17-2.15………..0.64
31-Jan-18-0.03-0.63-0.03………..-0.17

 

output format should be as follows

Stock SkewssKurtosisStandard_Deviation
X1   
X2   
X3   
   
   
   
   
   
   
X100   

 

thanks in advance 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26
ods output summary=summary;
proc means data=have stackodsoutput skewness kurtosis stddev;
    var x1-x100;
run;
--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26
ods output summary=summary;
proc means data=have stackodsoutput skewness kurtosis stddev;
    var x1-x100;
run;
--
Paige Miller

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3800 views
  • 1 like
  • 2 in conversation