Sample size of regression

For questions regarding programming in the EViews programming language.

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

meganmao
Posts: 12
Joined: Thu Aug 01, 2013 10:40 am

Sample size of regression

Postby meganmao » Thu Aug 22, 2013 9:26 am

Hi,

I have a fairly simple question but I can't seem to find the answer for it....
I'm trying to loop a regression and I need to specify the size of the sample. What is the code/command to do it?

This is a simple example of what I'm using:

Code: Select all

for !i=1 to 6 equation eq{!i}.ls y c x{!i}(-!i) next
I'm trying to set the sample to 2009M01 to 2013M07

Thanks!

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

Re: Sample size of regression

Postby startz » Thu Aug 22, 2013 9:35 am

Code: Select all

smpl 2009M01 2013M07

meganmao
Posts: 12
Joined: Thu Aug 01, 2013 10:40 am

Re: Sample size of regression

Postby meganmao » Thu Aug 22, 2013 9:36 am

Ah. I was definitely using the wrong syntax earlier....

Thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest