title: “Assingment IV”
author: “Olle Jönsson” date: “10 december 2016” output: html_document
1. Aquiring data and installing packages
Files imported from the internet - over https: install.packages(“downloader”)
Installing a package named Ecdat, containing data sets useful for basic econometrics.
install.packages(“Ecdat”) install.packages(“knitr” )
library(Ecdat) #load in current search path
Derive the intercept \(\alpha\) and the slope \(*\beta X_i + \varepsilon\)
\(\not=\) \(\frac{1}{N}{\sum _{i=1}^N \frac{ \tilde{x}_j^i(k|k)}{\sqrt{P_{\text{jj}} (k|k)}}}\)
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Fig. 4: Density for log(wages) of 2249 individuals