Title | tutorial 2 r code as needed |
---|---|
Author | Hei Li |
Course | Basic Econometrics |
Institution | University of Melbourne |
Pages | 4 |
File Size | 49.8 KB |
File Type | |
Total Downloads | 55 |
Total Views | 140 |
This r code helps to understand things you need to do for tutorial 2...
#---------------------------------------options(scipen=999) # Do not use scientific notation library(ggplot2) # Flexible graphic facility for R library(stargazer) # For producing good quality output from R library(scales) # package to display thousands with commas in graphs #--------------------------------------# (1) Import Data File from Excel and Save as R Data File tut2 =650, 0 otherwise #------------------------------------# (2) Estimate the econometric model by OLS # Dependent variable: Sale price, in dollars # Explanatory variable: Building area, square metres reg1...