R programming –finance

Learning Goal: I’m working on a r exercise and need the explanation and answer to help me learn.

1. Based on Lab3a exercises, select three most significant factors from single variable regressions, and run a regression of returns on these three variables.

Discuss the joint significance of these variables.

2. Based on Lab3b exercises, one can study the regression output and determine the significance of each factor. The following questions might help you in analyzing the regression output:

(a) Is marketcap significant? Can you explain the sign of the coefficient?

(b) Is price2cashflow significant? Can you explain the sign of the coefficient?

(c) Is price2earnings significant? Can you explain the sign of the coefficient?

(d) Is momentum significant? Can you explain the sign of the coefficient?

3. From the Lab3b data set, one can include a few additional factor exposures. For example, one might decide to include price2dividend instead of price2earnings, or roe instead of price2cashflow.

Estimate the fundamental factor model with log size, momentum, log price-to-book ratio based on fixed effects model with a. time fixed effects and b. time and firm fixed effects. Compare the estimates with the one we obtained above.

Note:

# required library for running the function of felm() to fit a linear model with multiple group fixed effects

install.packages(“lfe”)

library(lfe)

4. Why might univariate factor tests not be sufficient to determine the factors in a fundamental model?

Write the homework in a word file and attach the code.

Ace Your Assignments! 🏆 - Hire a Professional Essay Writer Now!

Why Choose Our Essay Writing Service?

  • ✅ Original writing: Our expert writers will write each paper from scratch, ensuring complete originality, zero plagiarism and AI free content.
  • ✅ Expert Writers: Our seasoned professionals are ready to deliver top-quality papers tailored to your needs.
  • ✅ Guaranteed Good Grades: Impress your professors with outstanding work.
  • ✅ Fast Turnaround: Need it urgently? We've got you covered!
  • ✅ 100% Confidentiality: Customer privacy is our number one priority. Your identity is anonymous to our writers.
🎓 Why wait? Let us help you succeed! Our Writers are waiting..

Get started

Starts at $9 /page

How our paper writing service works

It's very simple!

  • Fill out the order form

    Complete the order form by providing as much information as possible, and then click the submit button.

  • Choose writer

    Select your preferred writer for the project, or let us assign the best writer for you.

  • Add funds

    Allocate funds to your wallet. You can release these funds to the writer incrementally, after each section is completed and meets your expected quality.

  • Ready

    Download the finished work. Review the paper and request free edits if needed. Optionally, rate the writer and leave a review.