Real GDP per capita relative to the United...

3
Real GDP per capita relative to the United States July 18, 2013 A File attachments 1. 2. 3. 1

Transcript of Real GDP per capita relative to the United...

  • Real GDP per capita relative to the UnitedStates

    July 18, 2013

    A File attachments

    1.

    2.

    3.

    1

    \documentclass[12pt]{article}

    \usepackage{graphicx}\usepackage{natbib}\usepackage{color} \definecolor{webgreen}{rgb}{0,.5,0}\usepackage{hyperref} \hypersetup{letterpaper=true} \hypersetup{colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black} \hypersetup{bookmarks=true,bookmarksopen=true,pdfpagemode=UseOutlines} \hypersetup{pdfpagelayout=SinglePage} \hypersetup{pdfpagelayout=SinglePage,bookmarks=true,pdfpagemode=None} \hypersetup{pdfauthor={Espen Henriksen}}\usepackage{attachfile} \attachfilesetup{author={Espen Henriksen}} \attachfilesetup{color=0 .5 0}\usepackage[bf,hang]{caption2}\usepackage{listings}\lstset{language=R, commentstyle=\texttt, basicstyle=\footnotesize, keywordstyle=\color{blue}, commentstyle=\color{webgreen}, breaklines=true, breakatwhitespace=false }

    \begin{document}\title{Real GDP per capita relative to the United States}\date{\today}\maketitle

    \noindent

    \begin{figure}\includegraphics[width=\linewidth]{pwtrelGDPpercapita}\caption{Real GDP per capita relative to the United States}\end{figure}

    \appendix\section{File attachments}\begin{enumerate}\item \textattachfile{\jobname.tex}{LaTeX source file for this document}\item \textattachfile{pwt_rgdpl.R}{R script to compute ratios and plot the figure}\item \textattachfile{pwt71_wo_country_names_wo_g_vars.csv}{PWT data file}\end{enumerate}

    \clearpage

    \section{R script} \lstinputlisting{pwt_rgdpl.R}

    \end{document}

    Espen Henriksen

    rm(list=ls())

    setwd("/Users/espen/downloads/")

    library(gtools)library(gdata)

    pwt71

  • Year

    Rea

    l GD

    P p

    er c

    apita

    rel

    ativ

    e to

    the

    Uni

    ted

    Sta

    tes

    1950 1960 1970 1980 1990 2000 2010

    0.0

    0.2

    0.4

    0.6

    0.8

    1.0

    1.2

    AUSCANCHN

    CH2GERFRA

    ITAJPNNOR

    GBRUSA

    Dat

    a so

    urce

    :Pen

    n W

    orld

    Tab

    les

    Figure 1: Real GDP per capita relative to the United States

    2

  • B R script

    rm( l i s t=l s ( ) )

    setwd ( ”/Users / espen/downloads/” )

    l i b r a r y ( g t o o l s )l i b r a r y ( gdata )

    pwt71