Search found 240 matches

by EViews Matt
Sat Jun 23, 2018 6:35 am
Forum: General Information and Tips and Tricks
Topic: NA versus zero values
Replies: 1
Views: 27

Re: NA versus zero values

Hello, When you say that "SERIES3 has exactly the 'NA' of SERIES1", do you mean that SERIES3 has NAs for the same observations that SERIES1 did originally, or do you mean that SERIES3 has NAs for all the other observations (the original non-NA observations of SERIES1)? If it's the latter, ...
by EViews Matt
Thu Jun 21, 2018 9:31 am
Forum: Programming
Topic: @recode
Replies: 8
Views: 1498

Re: @recode

You want to examine values within each row, yes? For that @recode could work well. However, it's probably easier to use other EViews facilities. For example, you can add the series/columns you want to check to a group and then use @rfirst to identify the first non-NA value for each row of the group....
by EViews Matt
Tue Jun 19, 2018 9:49 am
Forum: Programming
Topic: @recode
Replies: 8
Views: 1498

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: 8
Views: 1498

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: 593

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: 593

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: 112

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: 68

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: 102

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: 437

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: 652

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: 652

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: 652

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: 126

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: 291

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

Go to advanced search