get_L_K_GDP_data: Create a dataframe containing capital (K), labor (L), and GDP...

View source: R/socioecon_functions.R

get_L_K_GDP_dataR Documentation

Create a dataframe containing capital (K), labor (L), and GDP data

Description

This function selects the following columns from a pwt10 data frame produced by calling pwt10::pwt10.0, with descriptions from pwt10 documentation: isocode: 3-letter isocode year: Year rgdpe: Expenditure-side real GDP at chained PPPs (in million 2017 USD). rgdpo: Output-side real GDP at chained PPPs (in million 2017 USD). rgdpna: Real GDP at constant 2017 national prices (in million 2017 USD) emp: Number of persons engaged (in millions) avh: Average annual hours worked by persons engaged. hc: Human capital index, based on years of schooling and returns to education; see Human capital in PWT9. rnna: Capital stock at constant 2017 national prices (in million 2017 USD). rkna: Capital services at constant 2017 national prices (2017 = 1).

Usage

get_L_K_GDP_data(
  pwt10_data,
  country_colname = IEATools::iea_cols$country,
  Year_colname = IEATools::iea_cols$year,
  year_colname = PFUWorkflow::socioecon_cols$year_colname,
  isocode_colname = PFUWorkflow::socioecon_cols$isocode_colname,
  rgdpe_colname = PFUWorkflow::socioecon_cols$rgdpe_colname,
  rgdpo_colname = PFUWorkflow::socioecon_cols$rgdpo_colname,
  rgdpna_colname = PFUWorkflow::socioecon_cols$rgdpna_colname,
  emp_colname = PFUWorkflow::socioecon_cols$emp_colname,
  avh_colname = PFUWorkflow::socioecon_cols$avh_colname,
  hc_colname = PFUWorkflow::socioecon_cols$hc_colname,
  rnna_colname = PFUWorkflow::socioecon_cols$rnna_colname,
  rkna_colname = PFUWorkflow::socioecon_cols$rkna_colname,
  K_colname = PFUWorkflow::socioecon_cols$K_colname,
  Kserv_colname = PFUWorkflow::socioecon_cols$Kserv_colname,
  L_colname = PFUWorkflow::socioecon_cols$L_colname,
  Ladj_colname = PFUWorkflow::socioecon_cols$Ladj_colname
)

Arguments

pwt10_data

A data frame containing all pwt10 data for at least one country, usually supplied through calling the get_all_pwt_data function.

country_colname, Year_colname

See IEATools::iea_cols.

isocode_colname, year_colname, rgdpe_colname, rgdpo_colname, rgdpna_colname, emp_colname, avh_colname, hc_colname, rnna_colname, rkna_colname, K_colname, Kserv_colname, L_colname, Ladj_colname

See PFUWorkflow::socioecon_cols.

Details

The metrics L, the total number of hours worked in a given year and Ladj, the number of hours worked adjusted by the human capital index are also calculated and added as columns, with avh, hc, and emp being removed after use.

Note that some data is not available for some countries (mostly non-OECD), some of the calculated metrics i.e. Adjusted Labor (L.adj) is also absent.

Value

A data frame containing three GDP metrics, Labor, Adjusted Labor, Capital, and Capital services.

Examples

countries <- c("GBR")
L_K_GDP_data <- get_all_pwt_data(countries = countries) %>%
                  get_L_K_GDP_data()


MatthewHeun/SEAPSUTWorkflow documentation built on April 22, 2022, 2:21 p.m.