Sampling from a truncated normal distribution

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

louizabadis
Posts: 6
Joined: Mon May 30, 2016 2:17 am

Re: Sampling from a truncated normal distribution

Postby louizabadis » Tue May 31, 2016 2:03 am

here in attachement i give you one exemple of série denominated yy. i want to calculate the probability of yy is in the interval [-0.025; +0.025].
in eviews i set @mean (yy>-0.025 and yy<0.025) and gives me a message i sent before.
thanks
Attachments
serie yy.WF1
(13.22 KiB) Downloaded 403 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Sampling from a truncated normal distribution

Postby startz » Tue May 31, 2016 5:58 am

Code: Select all

series f=@mean(yy>-.025 and yy<.025)
works fine for me.

louizabadis
Posts: 6
Joined: Mon May 30, 2016 2:17 am

Re: Sampling from a truncated normal distribution

Postby louizabadis » Tue May 31, 2016 1:07 pm

It works for me to and i find 0.855305.
Thanks a lot.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest