Page 1 of 1

splitting data into n equal parts (terciles, quartiles,etc)

Posted: Thu May 22, 2014 2:16 am
by ana_ccrv
Hi! I couldn't figure out how to do a splitting into different equal intervals and i don't want to do it manually , so I am wondering which function could I use (I am quite bad with programming, so i'd appreciate if you can write the full code)? I'm interested in a function where you can choose into how many parts to split the data - for example if i choose 0,25 it will take the first quartile and so on. I have version 8. Also, is it possible to do it at the same time for all series or to apply it to the variables included in a group/regression?

Thank you!

Ana

Re: splitting data into n equal parts (terciles, quartiles,e

Posted: Thu May 22, 2014 8:13 am
by EViews Esther
Can you be more specific? Are you trying to generate a dummy (e.g. 1 if x \in 0.25%, 0 otherwise), or trying to sort out your data?