## Search found 14 matches

Sat Jun 19, 2010 9:42 am
Forum: Programming
Topic: How can I extract p-values from the regression table?
Replies: 2
Views: 2455

### Re: How can I extract p-values from the regression table?

I see. Thanks!
Fri Jun 18, 2010 4:02 pm
Forum: Programming
Topic: How can I extract p-values from the regression table?
Replies: 2
Views: 2455

### How can I extract p-values from the regression table?

Hello,

Like the title says, does anyone know how can I extract p-values from the regression table?

If I want to extract t-statistics I just use @tstat, but what would I use to extract p-values?

Thu Apr 01, 2010 12:32 pm
Forum: Programming
Topic: How can I do a break command in eviews
Replies: 2
Views: 1294

### Re: How can I do a break command in eviews

Exactly what I needed. Thank You very much!
Thu Apr 01, 2010 9:16 am
Forum: Programming
Topic: How can I do a break command in eviews
Replies: 2
Views: 1294

### How can I do a break command in eviews

Hello, I am trying to write a code, such that the for loop stops if x(!i) > 1, but I am not sure what syntax I should use. for !i = 1 to 100 if x(!i) < 0 then y(!i) = 0 else if x(!i) > 1 then y(!i) = 1 break endif endif next In above code I am trying to put a break command where "break"(wh...
Thu Mar 18, 2010 8:01 pm
Forum: Programming
Topic: If statement question
Replies: 2
Views: 1415

### Re: If statement question

Yes. This works. Thank You Very Much!
Thu Mar 18, 2010 5:25 pm
Forum: Programming
Topic: If statement question
Replies: 2
Views: 1415

### If statement question

Hello, I tried to run this code if 10 < index(!i,1) <= 20 then zz(!i,1) = X(!i,1) else zz(!i,1) = na endif I am trying to tell EViews that index(!i,1) should be between 10 and 20, but it seems to treat my command as just "10 < index(!i,1". What would be the proper way to write this code? T...
Tue Mar 16, 2010 5:21 pm
Forum: Programming
Topic: Extracting coefficients and t-stats from VAR
Replies: 2
Views: 1769

### Re: Extracting coefficients and t-stats from VAR

Got it. Thanks a lot!
Tue Mar 16, 2010 3:55 pm
Forum: Programming
Topic: Extracting coefficients and t-stats from VAR
Replies: 2
Views: 1769

### Extracting coefficients and t-stats from VAR

Let's say I estimated a VAR model between two endogenous variables x and y, and called my VAR: :VAR01. Now I want to extract coefficients of variables (x(t-1), x(t-2)....) when yt is dependent variable. I want to extract the coefficients so I can put them in a vector or series. Is there a code that ...
Sat Mar 13, 2010 6:55 pm
Forum: Programming
Topic: Extracting actual values of MA(1)
Replies: 6
Views: 4195

### Re: Extracting actual values of MA(1)

I tried getting e(t-1) by e(t-1) = [res - x + c(1)]/( -c(2)) but when I run the regression with x c e(t-1) I don't get the same results as when I do x c MA(1). Which is a bit odd, because I can duplicate y perfectly from a x c y regression, while using the same exact technique. I guess I really don'...
Sat Mar 13, 2010 2:58 pm
Forum: Programming
Topic: Extracting actual values of MA(1)
Replies: 6
Views: 4195

### Re: Extracting actual values of MA(1)

When EViews estimates MA(1) process it runs this regression": x = c(1) +c(2)e(t-1) + e(t) and I wanted to get the e(t-1) that Eviews estimates to run the regression. But perhaps it is not so easy. I think I should point out the reason why I was asking this. I tried to run a maximum likelihood e...
Sat Mar 13, 2010 9:35 am
Forum: Programming
Topic: Extracting actual values of MA(1)
Replies: 6
Views: 4195

### Re: Extracting actual values of MA(1)

When I run this regression: equation reg reg.LS x c MA(1) E-views regresses x on a constant and MA(1). E-views calculates the values of MA(1) to be able to run the regression; however, I never see what those values are (unless I am missing something very obvious) all I get is the results. What I wan...
Fri Mar 12, 2010 8:20 pm
Forum: Programming
Topic: Extracting actual values of MA(1)
Replies: 6
Views: 4195

### Extracting actual values of MA(1)

Hello,

I wonder if there is a way to extract values of MA(1)

I am running the following regression:

equation reg
reg.LS x c MA(1)

and I wonder if there is a way to extract the values of MA(1), I want to have them as a series or a vector.

Tue Mar 09, 2010 3:27 pm
Forum: Data Manipulation
Topic: Calculating average of a part of a vector
Replies: 4
Views: 2983

### Re: Calculating average of a part of a vector

Got it! Thanks a lot!
Tue Mar 09, 2010 1:02 pm
Forum: Data Manipulation
Topic: Calculating average of a part of a vector
Replies: 4
Views: 2983

### Calculating average of a part of a vector

Hello,

I think my question is pretty basic, but I am new to e-views, so here it is:

Let's say I have a 4x1 vector X [1,2,3,4] and I want to calculate the average of the first two cells, i.e, [1,2]

What would be the syntax to do that?

Would the same thing work if X is a series?