Page 1 of 1

Histogram and stats [with condition]

Posted: Wed Aug 22, 2012 4:37 am
by jnkfoune
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!!!

Re: Histogram and stats [with condition]

Posted: Wed Aug 22, 2012 7:42 am
by EViews Gareth
Set the sample to be "if day=1" or something similar.

Re: Histogram and stats [with condition]

Posted: Wed Aug 22, 2012 7:55 am
by jnkfoune
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?

Re: Histogram and stats [with condition]

Posted: Wed Aug 22, 2012 8:05 am
by EViews Gareth

Code: Select all

smpl if day=1

Re: Histogram and stats [with condition]

Posted: Wed Aug 22, 2012 8:12 am
by jnkfoune
it seems to be working thank you!! :)