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

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

ana_ccrv
Posts: 2
Joined: Thu May 22, 2014 2:09 am

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

Postby ana_ccrv » Thu May 22, 2014 2:16 am

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

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

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

Postby EViews Esther » Thu May 22, 2014 8:13 am

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?


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests