HW 1 - part 2.pdf - HW 1 6)46 PM HW 1 setwd\"~\/Documents\/College\/Summer Quarter A-term\/Econ 404 df = read.csv\"ps1.csv Question 2 a df$y = log(df$Y df$k =

HW 1 - part 2.pdf - HW 1 6)46 PM HW 1...

This preview shows page 1 - 3 out of 4 pages.

7/3/19, 6)46 PM HW 1 Page 1 of 4 HW 1 setwd("~/Documents/College/Summer Quarter A-term/Econ 404") df = read.csv("ps1.csv") Question 2 - a df$y = log(df$Y) df$k = log(df$K) df$l = log(df$L) df$phi = log(df$PHI) summary(df) ## Y K L PHI ## Min. : 31.6 Min. : 5.014 Min. : 7.00 Min. :1.001 ## 1st Qu.: 104.9 1st Qu.: 7.575 1st Qu.:28.00 1st Qu.:1.344 ## Median : 156.1 Median :10.133 Median :30.00 Median :1.685 ## Mean : 190.0 Mean :10.125 Mean :29.03 Mean :1.748 ## 3rd Qu.: 241.3 3rd Qu.:12.650 3rd Qu.:31.00 3rd Qu.:2.131 ## Max. :1433.1 Max. :14.972 Max. :35.00 Max. :2.713 ## w y k l ## Min. :10.00 Min. :3.453 Min. :1.612 Min. :1.946 ## 1st Qu.:10.20 1st Qu.:4.653 1st Qu.:2.025 1st Qu.:3.332 ## Median :10.97 Median :5.051 Median :2.316 Median :3.401 ## Mean :12.06 Mean :5.067 Mean :2.271 Mean :3.360 ## 3rd Qu.:12.68 3rd Qu.:5.486 3rd Qu.:2.538 3rd Qu.:3.434 ## Max. :35.57 Max. :7.268 Max. :2.706 Max. :3.555 ## phi ## Min. :0.0006878 ## 1st Qu.:0.2953200 ## Median :0.5215299 ## Mean :0.5200084 ## 3rd Qu.:0.7567298 ## Max. :0.9979599 Question 2 - b reg = lm(y~k+l+phi,data=df) summary(reg)
Image of page 1
7/3/19, 6)46 PM HW 1 Page 2 of 4 ## ## Call: ## lm(formula = y ~ k + l + phi, data = df) ## ## Residuals: ## Min 1Q Median 3Q Max ## -1.49782 -0.33644 -0.00446 0.35757 1.79309 ## ## Coefficients: ## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 1.42197
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 4 pages?

  • Spring '08
  • Staff
  • Normal Distribution, Errors and residuals in statistics, setwd, 2.713 l, 10.00 Min

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes