Search found 113 matches

by EViews Rebecca
Tue Oct 28, 2014 2:23 pm
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

I am looking for help to implement following tests in the Fama-MacBeth regression. First, how can I include constant as a factor in the regression as many people do in their studies; second, how can I have the newey-west estimators from the time-series regressions and how can I test the joint signi...
by EViews Rebecca
Thu Oct 23, 2014 2:46 pm
Forum: Add-in Support
Topic: Fama-Macbeth Regression: P-values
Replies: 6
Views: 8346

Re: Fama-Macbeth Regression: P-values

If you want to extract p-values directly from the spool you can pull them out of the individual table cells into a vector. For example: example_results.extract(stats) GAMMA_SUMMARY_1 vector(2) vec1 vec1(1) = stats(15,2) vec1(2) = stats(15,3) You can also put it into a loop for more flexibility.
by EViews Rebecca
Wed Oct 22, 2014 2:45 pm
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Are you using "r*" to enter your portfolio returns in the add-in? In that case you will include the "resid" series, which you probably don't want to do. One solution is to rename the returns series to something that won't overlap with other series in your workfile.
by EViews Rebecca
Tue Oct 21, 2014 10:40 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Can you post the workfile you used?
by EViews Rebecca
Fri Aug 22, 2014 11:04 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Your "tk" series have NAs in them. As I've mentioned before, the add-in will not work if your series have NAs.
by EViews Rebecca
Fri Aug 15, 2014 9:14 am
Forum: Estimation
Topic: Smooth Transition Regression - transition with time
Replies: 9
Views: 10043

Re: Smooth Transition Regression - transition with time

They get set in your logl program.
by EViews Rebecca
Fri Aug 15, 2014 8:55 am
Forum: Estimation
Topic: Smooth Transition Regression - transition with time
Replies: 9
Views: 10043

Re: Smooth Transition Regression - transition with time

These models are very sensitive to starting values. Try playing around with those.
by EViews Rebecca
Thu Aug 14, 2014 5:18 pm
Forum: Estimation
Topic: Smooth Transition Regression - transition with time
Replies: 9
Views: 10043

Re: Smooth Transition Regression - transition with time

Your program code looks fine. What is your question?
by EViews Rebecca
Tue Aug 05, 2014 12:21 pm
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

It looks like you're on the right track, so break the calculation up into steps and examine each piece.
by EViews Rebecca
Tue Aug 05, 2014 10:48 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

I would start debugging this by breaking up your R2 calculation into pieces instead of doing it all in one long line. It should be easier to find the error that way.
by EViews Rebecca
Tue Aug 05, 2014 8:46 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

How are you trying to incorporate R squared?
by EViews Rebecca
Mon Aug 04, 2014 9:39 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Maverick wrote:Also it would be nice to understand the purpose of design=1 in the below code?

matrix(n_p, n_f + 1) design = 1


This fills the matrix "design" with ones.
by EViews Rebecca
Mon Aug 04, 2014 9:36 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Hi, I also need to incorporate r square into the code. I understand the first part of the fmb subprogram, but not the following part of the operation in the program: @transpose(@inverse(@transpose(design) * design) _ * @transpose(design) * retvec) If someone can help me understand this part it woul...
by EViews Rebecca
Mon Aug 04, 2014 9:30 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Also I have a question regarding the second table output from the add-in function, are the betas reported in table 2 average betas from the first regression? They are betas from a second regression that use the betas from the first timeseries regression as regressors. See equation 4 in the document...
by EViews Rebecca
Thu Jul 17, 2014 9:10 am
Forum: Add-in Support
Topic: Fama-MacBeth regression
Replies: 157
Views: 250233

Re: Fama-MacBeth regression

Dialogs in EViews generally don't allow you to set samples, so I would suggest simply using the workfile sample.

Go to advanced search