Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the Fama-Macbeth Regression #74

Open
mandarpriya opened this issue Dec 14, 2022 · 1 comment
Open

Regarding the Fama-Macbeth Regression #74

mandarpriya opened this issue Dec 14, 2022 · 1 comment

Comments

@mandarpriya
Copy link

Sir,
I used the methodology as shown in the book Tidy Finance with R and obtained the Beta. So now how should i do the second step of Fama-Macbeth . I was going through the procedure in the book, and I really aprreciate for the data for replication. But there too for the first step for my data i am able to get the results but for the second step i am getting errors. So here is the attachment based on the work for Beta . I would be eagerly waiting for your reply.
thanks Mandar
RStudio-EDQhXi.pdf

@shokru
Copy link
Owner

shokru commented Dec 14, 2022

Hello Mandar, in full disclosure I did not open the file.
But if you have well-defined betas after the first step and if you have test asset (stock) returns, then, for each POINT IN TIME, when you regress across the betas obtained in the first step, the values of the lambdas (coefficients) should be well defined. Basically, if all inputs are well-defined and have the correct shape/size, there is no reason why you should obtain errors after using the lm(...) function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants