Histogram and stats [with condition]

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

jnkfoune
Posts: 14
Joined: Mon Aug 13, 2012 12:44 am

Histogram and stats [with condition]

Postby jnkfoune » Wed Aug 22, 2012 4:37 am

Hello,

I have imported data from excel, 1 column corresponding to some daily returns, and 5 other colums corresponding to dummy (1 or 0) corresponding to the day of the week of the daily return

I could get the Histogram and stats of whole daily return (using the menu Quick>Serie Statistic>Histogram and stats...) but now I would like to get the histogram and stat particular of each day of the week.

How could I do? Putting conditions like "get Histogram and stats if Day1(i)=1" ?

Thank you for your help!!!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Histogram and stats [with condition]

Postby EViews Gareth » Wed Aug 22, 2012 7:42 am

Set the sample to be "if day=1" or something similar.

jnkfoune
Posts: 14
Joined: Mon Aug 13, 2012 12:44 am

Re: Histogram and stats [with condition]

Postby jnkfoune » Wed Aug 22, 2012 7:55 am

thank you for your reply,

How should i write the line code in the console, when I go through Quick>Histo and stats, it just ask me for the serie's name?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Histogram and stats [with condition]

Postby EViews Gareth » Wed Aug 22, 2012 8:05 am

Code: Select all

smpl if day=1

jnkfoune
Posts: 14
Joined: Mon Aug 13, 2012 12:44 am

Re: Histogram and stats [with condition]

Postby jnkfoune » Wed Aug 22, 2012 8:12 am

it seems to be working thank you!! :)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests