Search found 12 matches

by Danxxx
Sat Oct 30, 2010 5:22 am
Forum: Models
Topic: Identities: as text or as equations?
Replies: 0
Views: 3198

Identities: as text or as equations?

This is a follow-up to my previous post > Effect of RHS variables on dependent variable (_1 vs _0) >http://forums.eviews.com/viewtopic.php?f=10&t=3210 where I discussed creating a model from an equation; then I can change the RHS variables one at a time to see the effect on the dependent variabl...
by Danxxx
Sat Oct 23, 2010 5:08 pm
Forum: Models
Topic: Effect of RHS variables on dependent variable (_1 vs _0)
Replies: 1
Views: 4610

Effect of RHS variables on dependent variable (_1 vs _0)

Hi, My model has baseline _0, and scenario _1 [over 2010-2020]. For each equation's dependent variable, I want to see the effect of each right-hand side variable. (For now, assume there are no lagged dependent variables on the rhs). In other words, suppose I have LS log(xx) c log(yy(-1)) pdl(zz,6,1,...
by Danxxx
Fri Jul 02, 2010 4:49 pm
Forum: Data Manipulation
Topic: Importing (undated) text from a table
Replies: 2
Views: 3522

Re: Importing (undated) text from a table

That looks pretty good. I guess I assumed I would need a list of the banks, a list of oldnames, etc but I really don't. Thanks.
by Danxxx
Fri Jul 02, 2010 11:14 am
Forum: Data Manipulation
Topic: Importing (undated) text from a table
Replies: 2
Views: 3522

Importing (undated) text from a table

I'm making a table (or maybe an excel file) with mostly text data, which looks like BANK OLD_NAME NEW_NAME global a542xx x_kor intl a111ggg gdp_usa [in fixed font they line up in 3 columns] I want to get this data into usable form, then make a loop that imports data from different databanks (e.g. fi...
by Danxxx
Fri Jul 02, 2010 8:01 am
Forum: Data Manipulation
Topic: Getting (undated) string data from table
Replies: 0
Views: 2325

Getting (undated) string data from table

I will have a table (or excel file) with mostly text data, which looks like BANK OLD_NAME NEW_NAME global a542xx x_kor intl a111ggg gdp_usa [these are supposed to line up in 3 columns] I want to get this data into usable form, then make a loop that imports data from different databanks (e.g. first I...
by Danxxx
Thu Jun 17, 2010 12:28 pm
Forum: Programming
Topic: Loop: get series and do operations on them
Replies: 6
Views: 6310

Re: Loop: get series and do operations on them

All the source info (~100 series) must be entered by hand. So I just wanted an easy format in the program file so a person can see the workfile, sername etc. next to each other.
by Danxxx
Mon Jun 14, 2010 10:52 am
Forum: Programming
Topic: Loop: get series and do operations on them
Replies: 6
Views: 6310

Re: Loop: get series and do operations on them

Thanks, I didn't know about @word I'm still trying to arrange the big string in a user-friendly way (i.e. in rows, one for each series). It appears there is no continuation character for word wrapping a string. So I'll probably do something like this: string sallinfo = "" sallinfo = sallin...
by Danxxx
Mon Jun 14, 2010 7:25 am
Forum: Programming
Topic: Loop: get series and do operations on them
Replies: 6
Views: 6310

Loop: get series and do operations on them

Hi, I have lots of series that I have to: copy in from various workfiles, change their names, and multiply them by a number. There will be hundreds of series. So I set up a string with all the info, used @wsplit to make it into a string vector, then used control variables to work through it (see bel...
by Danxxx
Mon Jun 07, 2010 2:31 pm
Forum: Programming
Topic: IF statement: make it limited to sample?
Replies: 8
Views: 7395

Re: IF statement: make it limited to sample?

Thanks, that looks good.
It's possible one of the series might have an NA in the sample period; I'll try to find a function to use on @sum(equal) to check for that.
by Danxxx
Mon Jun 07, 2010 1:20 pm
Forum: Programming
Topic: IF statement: make it limited to sample?
Replies: 8
Views: 7395

Re: IF statement: make it limited to sample?

I'm still not sure what you are trying to do though. You're just trying to test whether two series are identical over a sub-sample? Yes, exactly. Suppose I have Year ser1 ser2 2000 1.0 NA 2001 2.0 2.0 2002 3.0 3.0 2003 4.0 4.0 I did smpl 2001 2003 but then the statement if ser1=ser2 then .. yielded...
by Danxxx
Mon Jun 07, 2010 10:49 am
Forum: Programming
Topic: IF statement: make it limited to sample?
Replies: 8
Views: 7395

Re: IF statement: make it limited to sample?

Not clear what you're trying to do. You can never use if to compare two series. Are you sure? I just did a simple test: Made these series Year ser1 ser2 2001 1.0 1.0 2002 2.5 2.5 2003 3.0 3.0 2004 4.0 4.0 then ran this program text res1 if ser1=ser2 then res1.append "ser1=ser2" endif and ...
by Danxxx
Mon Jun 07, 2010 10:19 am
Forum: Programming
Topic: IF statement: make it limited to sample?
Replies: 8
Views: 7395

IF statement: make it limited to sample?

I need to compare two GDP series, one is 1970-2009 and the other is 1980-2009. So the first has more history. But I only want to compare over 1980-2009. I tried smpl 1980 2009 and then did if ser1=ser2 then... But I got errors due to the NAs in 1970-1979 in the later-starting series. Q: Is there any...

Go to advanced search