Page 1 of 1

Repeated variable input

Posted: Tue Feb 26, 2013 7:28 am
by davey87
Hello,

I have another relatively simply question.

I have a series called p85to89fz1p in which I want to manually input values for. There are 30 values I need to input, however the last 24 are all the same.

For example, this is what I am trying to do:

smpl 2006 2036
p85to89fz1p=5,6,6,6,8,9,10,10,10...........................10

The first 6 values are different, then the last 24 are all 10's. Is there a way I can avoid typing "10" 24 times?

I know in AREMOS the command was:

ser<2006 2036>p85to89f=5,6,6,8,9,10,10,10 repeat *;

Where the "repeat" function inputted 10's until the end of the specified time series.

Is there a similar command in EViews?

Thanks

Re: Repeated variable input

Posted: Tue Feb 26, 2013 7:50 am
by startz
One workaround is

Code: Select all

smpl 2027 2036 p85to89fz1p = 10 smpl@all

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:14 am
by davey87
This worked fine for the 10's part of it.

I can't seem to find out how to manually input different values for the series though, i.e. the p85to89fz1p=5,6,6,6,8,9 part for 2006 to 2011.

I have tried

smpl 2006 2011
p85to89fz1p= 5 6 6 8 9
smpl 2012 2036
p85to89fz1p=10 @all

however it tells me there is a syntax error in the p85to89fz1p= 5 6 6 8 9 part.

Are you able to provide advice about this?

Thanks

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:17 am
by startz
This worked fine for the 10's part of it.

I can't seem to find out how to manually input different values for the series though, i.e. the p85to89fz1p=5,6,6,6,8,9 part for 2006 to 2011.

I have tried

smpl 2006 2011
p85to89fz1p= 5 6 6 8 9
smpl 2012 2036
p85to89fz1p=10 @all

however it tells me there is a syntax error in the p85to89fz1p= 5 6 6 8 9 part.

Are you able to provide advice about this?

Thanks
One way to do this is to open up the series to a spreadsheet view and type in the individual values.

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:19 am
by davey87
Yes, that is kind of a last resort for me though due to some other factors.

I'm sure there is a way to manually input variables into a series that is already made. I just can't seem to find how to do it

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:20 am
by EViews Gareth
In EViews 8:

Code: Select all

smpl 2006 2036 p85to80fz1p.adjust = 5 6 6 6 8 9 10 r24

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:21 am
by davey87
Perfect!

Thanks a lot

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:30 am
by davey87
Actually I may have spoken too soon.

I am getting an error message that reads:

ADJUST is not a valid view for P85TO89FZ1P in "DO_P85TO89FZ1P.ADJUST = 5 6 6 6 8 9 10 R24"

Any idea why this is happening?

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:31 am
by EViews Gareth
In EViews 8:

Code: Select all

smpl 2006 2036 p85to80fz1p.adjust = 5 6 6 6 8 9 10 r24

:wink:

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:32 am
by davey87
Nope, Version 7.2

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:33 am
by davey87
Sorry I didn't notice the 8.

So there is no way to do this in Version 7?

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:39 am
by EViews Gareth

Code: Select all

smpl 2006 2006 p85to80fz1p = 5 smpl 2007 2007 p85to80fz1p = 6 smpl 2008 2008 p85to80fz1p = 6
and so on...

Re: Repeated variable input

Posted: Tue Feb 26, 2013 10:45 am
by davey87
Ouch.

Gonna have to upgrade to Version 8 I guess haha

Thanks again man i appreciate all the help