BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have monthly data (huge dataset), and want to compute empirical CDF for each year each company.

what's the best way to do it?


thank you so much!!!
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
Perhaps this documentation will be of use to you.
http://support.sas.com/rnd/app/da/new/802ce/ets/chap4/sect8.htm
in which it discusses the CDF=EMPIRICAL option.

For help using the SAS/STAT procedures, you might consider contacting Tech Support.

cynthia
deleted_user
Not applicable
thank you so much, though it is not what i am looking for. i dont think a simple build-in function can solve it. it should be a formula....i guess.....
Cynthia_sas
SAS Super FREQ
Hmmm,
I didn't think that CDF=EMPIRICAL() in the documentation example was a function. In this syntax example (clipped from the doc), it looks, to me, like a statement option on the ERRORMODEL statement.
[pre]

proc model data=t time=t itprint;
dependent y;
parm a 5 ;
y = a;
obj = resid.y * resid.y;
errormodel y ~ general( obj )
cdf=(empirical=( tails=( t(15) percent= 5)));

fit y / outns=s out=r;
id date;
solve y / data=t(where=(date='1jun95'd ))
residdata=r sdata=s random=200 seed=6789 out=monte;
run;

[/pre]

Of course, I am not a STAT person and that was just the FIRST hit I came up with when searching the doc for the string "empirical CDF".

For more help with your question, you might consider contacting Tech Support.

cynthia
deleted_user
Not applicable
sorry that i may have confused you. my question is, given a list of numbers as below, how to compute CDFs based on last 100 numbers.


0.3
1.2
2.5
0.1
0.1
0.1
0.2
0.33
0.21
.2
0.1
.3
.5
.6
.2
............................(a long long list)
etc. Message was edited by: zinita

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!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

Discussion stats
  • 4 replies
  • 1061 views
  • 0 likes
  • 2 in conversation