Wednesday, February 29, 2012

Find Every nTh Observation from SAS / BASE , SAS /SQL



Data analysis;
set a1;
if mod( _n_ ,5)=0;
run;








5 comments:

  1. Any issue Regarding SAS SQl contact me @ +919718186106

    ReplyDelete
  2. Welcome Kalyan for more u can connect with me @ Skype : anigotiyara

    ReplyDelete
  3. Hello Ankit,
    I have a problem of choosing every 300th observation by dates. I have a tick-by-tick financial transaction data. The data are arranged through dates. The mod function may work fine for the first day. But for the next day the observation starts from say 1600 but I want to start from this observation and choose every 300th observation. Could you help me with that?Thank you in advance.

    ReplyDelete
    Replies
    1. Sure i can help you but could you please share me the sample data set for better understanding your problem.

      Delete

Note: Only a member of this blog may post a comment.