how to generate new data

For questions regarding programming in the EViews programming language.

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

seg_b
Posts: 15
Joined: Wed Mar 30, 2011 7:10 am

how to generate new data

Postby seg_b » Fri Apr 01, 2011 7:27 am

Hi,

I am a new eviews user.
I used to work with SAS...

I just have 23 data in my base.
I tested those data, I know they're distributed from Normale.
Mean = 299,15
std dev : 23,95

I want to generate new data from a Normale(299.15 ; 23,95) to make a new regression and compare to my first results with 23 data.
So, my question is :
how to generate those new data ?

thanks a lot for helping

seg_b

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

Re: how to generate new data

Postby EViews Gareth » Fri Apr 01, 2011 8:17 am

Code: Select all

series x = 299.15 + 23.95*nrnd
(note in your post you aren't clear whether 23.95 is the stdev or the variance).

seg_b
Posts: 15
Joined: Wed Mar 30, 2011 7:10 am

Re: how to generate new data

Postby seg_b » Mon Apr 11, 2011 2:34 am

thanks a lot!
it was very helpfull ;)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests