Search found 238 matches

by EViews Matt
Tue Jun 19, 2018 9:49 am
Forum: Programming
Topic: @recode
Replies: 5
Views: 1364

Re: @recode

Ah, you want to test if each value in scomp_cusp_al matches ANY value in cusip_alpha, and copy the corresponding type value. @recode is not the way to do this. Basically, you need to manually go through every observation in scomp_cusp_al and search for a matching observation in cusip_alpha. series D...
by EViews Matt
Mon Jun 18, 2018 8:43 am
Forum: Programming
Topic: @recode
Replies: 5
Views: 1364

Re: @recode

Hello,

You could use something like,

Code: Select all

series DS_s = @recode(cusip_alpha = scomp_cusp_al, type, na)

and then add DS_s to group Scusp afterword.
by EViews Matt
Fri Jun 08, 2018 2:30 pm
Forum: Programming
Topic: dates in @elem
Replies: 5
Views: 573

Re: dates in @elem

If your "dates" are just simple observation numbers, you can create the adjusted date string simply as, %tmp = @str(%0 - 360) However, if you're dealing with formatted date strings, e.g., "1/1/1990", then @dateadd should be used to perform the adjustment. Since @dateadd operates ...
by EViews Matt
Fri Jun 08, 2018 11:39 am
Forum: Programming
Topic: dates in @elem
Replies: 5
Views: 573

Re: dates in @elem

Hello,

The second argument to @elem, the date, cannot be an expression of the form you've shown. You need to create the date you want before @elem.
by EViews Matt
Tue Jun 05, 2018 2:27 pm
Forum: Data Manipulation
Topic: command history in series
Replies: 3
Views: 83

Re: command history in series

Hello,

There is a limit of six lines of history information following the topmost "Last updated" entry. However, lengthy update expressions span two lines. In practice, you'll see between the last three to six changes made, but no more than six lines total.
by EViews Matt
Mon Jun 04, 2018 8:52 am
Forum: Data Manipulation
Topic: Use a scalar in a series name
Replies: 1
Views: 50

Re: Use a scalar in a series name

Hello,

Use variable replacement with {}'s. For example,

Code: Select all

scalar f= (5.031087- ssrt_{deuda} ) / ssrt_{deuda} = (5.031087- ssrt_73 ) / ssrt_73
by EViews Matt
Wed May 30, 2018 6:42 am
Forum: General Information and Tips and Tricks
Topic: EViews 10 Dependency Graph
Replies: 2
Views: 82

Re: EViews 10 Dependency Graph

Hello, If you save the workfile after viewing the dependency graph, the graph will be saved as part of the model object and be re-displayed much more quickly the next time you switch to the dependency view. However, any changes to the model will void that cached copy of the dependency graph and forc...
by EViews Matt
Mon May 21, 2018 10:34 am
Forum: Suggestions and Requests
Topic: @wfind and asterisk
Replies: 3
Views: 385

Re: @wfind and asterisk

Hello,

@isobject requires a string argument, but {%n}_{%y} is not a string (it's an identifier, i.e., a name). Instead, use the expression @isobject(%n + "_" + %y).
by EViews Matt
Sun May 13, 2018 9:54 am
Forum: Estimation
Topic: Long run restrictions for a structural VAR
Replies: 13
Views: 622

Re: Long run restrictions for a structural VAR

Updated my analysis above. Something about it was bothering me, until I finally realized I had made a typo.
by EViews Matt
Fri May 11, 2018 9:41 am
Forum: Estimation
Topic: Long run restrictions for a structural VAR
Replies: 13
Views: 622

Re: Long run restrictions for a structural VAR

That S is lower triangular is a consequence of A being lower triangular and B being diagonal (remember that S = A^-1 * B). As I suspected, running your SVAR with an up-to-date version of EViews generates an error indicating that the optimization converged before the S/F restrictions were satisfied. ...
by EViews Matt
Thu May 10, 2018 8:53 am
Forum: Estimation
Topic: Long run restrictions for a structural VAR
Replies: 13
Views: 622

Re: Long run restrictions for a structural VAR

Hello, If you have restrictions on A and/or B, it's possible the optimizer may settle on a solution that violates S and/or F restrictions. There have been some additional warning and error messages added to the SVAR system since your build, so updating EViews and retrying the estimation may yield mo...
by EViews Matt
Thu May 03, 2018 6:05 pm
Forum: Estimation
Topic: over identification
Replies: 2
Views: 108

Re: over identification

As the SVAR documentation indicates, the null hypothesis is that the restrictions are valid.
by EViews Matt
Fri Apr 27, 2018 8:59 am
Forum: Programming
Topic: Loop with decimals
Replies: 10
Views: 267

Re: Loop with decimals

Creating a string to hold the result of that expression will work, e.g.,

Code: Select all

string tmp = @replace(@str(!x), ".", "")
series hdebt_{tmp}=1
by EViews Matt
Thu Apr 26, 2018 4:21 pm
Forum: Programming
Topic: Loop with decimals
Replies: 10
Views: 267

Re: Loop with decimals

Did you accidentally type "hdebt_!i1" somewhere in your code?
by EViews Matt
Thu Apr 26, 2018 3:40 pm
Forum: Programming
Topic: Loop with decimals
Replies: 10
Views: 267

Re: Loop with decimals

Sure, go ahead and run it to find out.

Go to advanced search