Title: | Product Concordance |
---|---|
Description: | A set of utilities for matching products in different classification codes used in international trade research. It supports concordance between the Harmonized System (HS0, HS1, HS2, HS3, HS4, HS5, HS6, HS combined), the Standard International Trade Classification (SITC1, SITC2, SITC3, SITC4), the North American Industry Classification System (NAICS 2002, 2007, 2012, 2017, combined), as well as the Broad Economic Categories (BEC4), the International Standard of Industrial Classification (ISIC2, ISIC3, ISIC3.1, ISIC4), and the Standard Industrial Classification (SIC). It also provides code nomenclature/descriptions look-up, product code look-up based on user-specified keywords, Rauch classification look-up (via concordance to SITC2), trade elasticity look-up (via concordance to HS0 or SITC3 codes), upstreamness/downstreamness look-up (via concordance to ISIC3 and NAICS codes), and intermediateness look-up (via product descriptions). |
Authors: | Steven Liao [aut, cre], In Song Kim [aut], Sayumi Miyano [aut], Hao Zhang [aut] |
Maintainer: | Steven Liao <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2.1.0 |
Built: | 2024-09-18 04:23:50 UTC |
Source: | https://github.com/insongkim/concordance |
A dataset containing the description of products under the BEA industry classification in 2002
bea2002_desc
bea2002_desc
A data frame with 430 rows and 2 variables:
BEA Code
BEA Description
https://www.bea.gov/industry/benchmark-input-output-data
A dataset containing concordances between BEA2002 and NAICS2002 classification.
bea2002_naics2002
bea2002_naics2002
A data frame with 1,335 rows and 6 variables:
6-digit BEA2002 Code
6-digit NAICS2002 Code
5-digit NAICS2002 Code
4-digit NAICS2002 Code
3-digit NAICS2002 Code
2-digit NAICS2002 Code
https://www.bea.gov/industry/benchmark-input-output-data
A dataset containing concordances between BEA2007 and NAICS2007 classification.
bea2007_naics2007
bea2007_naics2007
A data frame with 1,376 rows and 6 variables:
6-digit BEA2007 Code
6-digit NAICS2007 Code
5-digit NAICS2007 Code
4-digit NAICS2007 Code
3-digit NAICS2007 Code
2-digit NAICS2007 Code
https://apps.bea.gov/iTable/index_industry_io.cfm
A dataset containing the description of products under the BEA industry classification in 2007 and 2012
bea2012_desc
bea2012_desc
A data frame with 409 rows and 2 variables:
BEA Code
BEA Description
https://apps.bea.gov/iTable/index_industry_io.cfm
A dataset containing concordances between BEA2012 and NAICS2012 classification.
bea2012_naics2012
bea2012_naics2012
A data frame with 1,376 rows and 6 variables:
6-digit BEA2012 Code
6-digit NAICS2012 Code
5-digit NAICS2012 Code
4-digit NAICS2012 Code
3-digit NAICS2012 Code
2-digit NAICS2012 Code
https://apps.bea.gov/iTable/index_industry_io.cfm
A dataset containing the description of products under the BEC4 classification.
bec4_desc
bec4_desc
A data frame with 50 rows and 2 variables:
BEC4 Code
BEC4 Description
https://comtrade.un.org/data/cache/classificationBEC.json
Concords different classification codes used in international trade.
concord(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of industry/product codes to be converted. |
origin |
A string setting the input coding scheme. Currently supports: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined), "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
destination |
A string setting the output coding scheme. Currently supports: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined), "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
dest.digit |
An integer indicating the preferred number of digits for outputs. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Please include leading zeros in codes (e.g., use HS code 010110 instead of 10110). For BEC4 only, use original codes or add trailing zeroes if necessary (e.g., 7 or 700 instead of 007). Results may be buggy otherwise.
Data consolidated from
Pierce and Schott (2009, 2018) <https://faculty.som.yale.edu/peterschott/international-trade-data/>
World Integrated Trade Solution (WITS), World Bank <https://wits.worldbank.org/product_concordance.html>
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# HS to NAICS concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", dest.digit = 6, all = TRUE) concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", dest.digit = 6, all = FALSE) # NAICS to HS concord(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "HS", dest.digit = 6, all = TRUE) # HS to SITC4 concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # SITC4 to HS concord(sourcevar = c("22240", "77324"), origin = "SITC4", destination = "HS", dest.digit = 6, all = TRUE) # HS to ISIC3 concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "ISIC3", dest.digit = 4, all = TRUE) # SITC4 to NAICS concord(sourcevar = c("22240", "77324"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # NAICS to SITC4 concord(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "SITC4", dest.digit = 5, all = TRUE) # BEC4 to NAICS2017 concord(sourcevar = c("11", "21"), origin = "BEC4", destination = "NAICS2017", dest.digit = 4, all = FALSE)
# HS to NAICS concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", dest.digit = 6, all = TRUE) concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", dest.digit = 6, all = FALSE) # NAICS to HS concord(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "HS", dest.digit = 6, all = TRUE) # HS to SITC4 concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # SITC4 to HS concord(sourcevar = c("22240", "77324"), origin = "SITC4", destination = "HS", dest.digit = 6, all = TRUE) # HS to ISIC3 concord(sourcevar = c("120600", "854690"), origin = "HS", destination = "ISIC3", dest.digit = 4, all = TRUE) # SITC4 to NAICS concord(sourcevar = c("22240", "77324"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # NAICS to SITC4 concord(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "SITC4", dest.digit = 5, all = TRUE) # BEC4 to NAICS2017 concord(sourcevar = c("11", "21"), origin = "BEC4", destination = "NAICS2017", dest.digit = 4, all = FALSE)
Concords codes within the Harmonized System classification (HS0, HS1, HS2, HS3, HS4, HS5, HS6).
concord_hs(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_hs(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of HS codes. The function accepts 2, 4, 6-digit HS codes. |
origin |
A string setting the input industry classification: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), and "HS6" (2022). |
destination |
A string setting the output industry classification: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), and "HS6" (2022). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2, 4, or 6-digit HS codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# HS5 to HS4 concord_hs(sourcevar = c("1206", "8546"), origin = "HS5", destination = "HS4", dest.digit = 4, all = TRUE) # HS0 to HS5 concord_hs(sourcevar = c("010111", "382390"), origin = "HS0", destination = "HS5", dest.digit = 6, all = TRUE)
# HS5 to HS4 concord_hs(sourcevar = c("1206", "8546"), origin = "HS5", destination = "HS4", dest.digit = 4, all = TRUE) # HS0 to HS5 concord_hs(sourcevar = c("010111", "382390"), origin = "HS0", destination = "HS5", dest.digit = 6, all = TRUE)
Concords Harmonized System codes (HS0, HS1, HS2, HS3, HS4, HS5, HS6, HS combined) to and from Broad Economic Classification codes (BEC Revision 4).
concord_hs_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
concord_hs_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
sourcevar |
An input character vector of HS or BEC codes. The function accepts 2, 4, 6-digit codes for HS and 1 to 3-digit codes for BEC. |
origin |
A string setting the input industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "BEC4" (2016). |
destination |
A string setting the output industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "BEC4" (2016). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2, 4, or 6 digits for HS codes and 1 to 3 digits for BEC codes. The default is 2 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# one input: one-to-one match concord_hs_bec(sourcevar = "120600", origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) concord_hs_bec(sourcevar = "120600", origin = "HS", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: multiple-to-one match concord_hs_bec(sourcevar = c("010110", "010210"), origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) concord_hs_bec(sourcevar = c("010110", "010210"), origin = "HS", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: repeated concord_hs_bec(sourcevar = c("120600", "120600"), origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) # one to multiple matches concord_hs_bec(sourcevar = c("010120", "030571"), origin = "HS", destination = "BEC4", dest.digit = 3, all = TRUE) # if no match, will return NA and give warning message concord_hs_bec(sourcevar = c("120600", "120610"), origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) # 4-digit inputs, 2-digit outputs concord_hs_bec(sourcevar = c("1206", "8546"), origin = "HS", destination = "BEC4", dest.digit = 2, all = TRUE) # 6-digit inputs, 1-digit outputs concord_hs_bec(sourcevar = c("120600", "854610"), origin = "HS", destination = "BEC4", dest.digit = 1, all = TRUE) ## BEC4 to HS combined concord_hs_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "HS", dest.digit = 6, all = FALSE)
# one input: one-to-one match concord_hs_bec(sourcevar = "120600", origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) concord_hs_bec(sourcevar = "120600", origin = "HS", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: multiple-to-one match concord_hs_bec(sourcevar = c("010110", "010210"), origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) concord_hs_bec(sourcevar = c("010110", "010210"), origin = "HS", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: repeated concord_hs_bec(sourcevar = c("120600", "120600"), origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) # one to multiple matches concord_hs_bec(sourcevar = c("010120", "030571"), origin = "HS", destination = "BEC4", dest.digit = 3, all = TRUE) # if no match, will return NA and give warning message concord_hs_bec(sourcevar = c("120600", "120610"), origin = "HS", destination = "BEC4", dest.digit = 3, all = FALSE) # 4-digit inputs, 2-digit outputs concord_hs_bec(sourcevar = c("1206", "8546"), origin = "HS", destination = "BEC4", dest.digit = 2, all = TRUE) # 6-digit inputs, 1-digit outputs concord_hs_bec(sourcevar = c("120600", "854610"), origin = "HS", destination = "BEC4", dest.digit = 1, all = TRUE) ## BEC4 to HS combined concord_hs_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "HS", dest.digit = 6, all = FALSE)
Concords Harmonized System codes (HS0, HS1, HS2, HS3, HS4, HS5, HS6, HS combined) to and from International Standard Industrial Classification codes (ISIC Revision 2, 3, 3.1, 4).
concord_hs_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_hs_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of HS or ISIC codes. The function accepts 2, 4, 6-digit codes for HS and 1 to 4-digit codes for ISIC. |
origin |
A string setting the input industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
destination |
A string setting the output industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2, 4, or 6 digits for HS codes and 1 to 4 digits for ISIC codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
Concordance tables provided by:
World Integrated Trade Solution (WITS), World Bank <https://wits.worldbank.org/product_concordance.html>
## HS5 to ISIC4 concord_hs_isic(sourcevar = c("120600", "854690"), origin = "HS5", destination = "ISIC4", dest.digit = 4, all = TRUE) ## ISIC4 to HS5 concord_hs_isic(sourcevar = c("0111", "2599"), origin = "ISIC4", destination = "HS5", dest.digit = 4, all = TRUE)
## HS5 to ISIC4 concord_hs_isic(sourcevar = c("120600", "854690"), origin = "HS5", destination = "ISIC4", dest.digit = 4, all = TRUE) ## ISIC4 to HS5 concord_hs_isic(sourcevar = c("0111", "2599"), origin = "ISIC4", destination = "HS5", dest.digit = 4, all = TRUE)
Concords Harmonized System codes (HS0, HS1, HS2, HS3, HS4, HS5, HS6, HS combined) to and from North American Industry Classification System codes (NAICS2002, NAICS2007, NAICS2012, NAICS2017, NAICS combined).
concord_hs_naics(sourcevar, origin, destination, dest.digit = 6, all = FALSE)
concord_hs_naics(sourcevar, origin, destination, dest.digit = 6, all = FALSE)
sourcevar |
An input character vector of HS or NAICS codes. The function accepts 2, 4, 6-digit codes for HS and 2 to 6-digit codes for NAICS. |
origin |
A string setting the input industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined). |
destination |
A string setting the output industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2, 4, or 6 digits for HS and 2 to 6-digit codes for NAICS. The default is 6 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
HS-NAICS concordance tables between 1989 and 2017 from Pierce and Schott (2009, 2018) <https://faculty.som.yale.edu/peterschott/international-trade-data/>.
## HS combined to NAICS # one input: one-to-one match concord_hs_naics(sourcevar = "120600", origin = "HS", destination = "NAICS", all = FALSE) concord_hs_naics(sourcevar = "120600", origin = "HS", destination = "NAICS", all = TRUE) # two inputs: multiple-to-one match concord_hs_naics(sourcevar = c("120600", "120400"), origin = "HS", destination = "NAICS", all = FALSE) concord_hs_naics(sourcevar = c("120600", "120400"), origin = "HS", destination = "NAICS", all = TRUE) # two inputs: repeated concord_hs_naics(sourcevar = c("120600", "120600"), origin = "HS", destination = "NAICS", all = FALSE) # one to multiple matches concord_hs_naics(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", all = TRUE) # if no match, will return NA and give warning message concord_hs_naics(sourcevar = c("120600", "120800"), origin = "HS", destination = "NAICS", all = FALSE) # 4-digit inputs concord_hs_naics(sourcevar = c("1206", "8546"), origin = "HS", destination = "NAICS", all = TRUE) # 4-digit outputs concord_hs_naics(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", dest.digit = 4, all = TRUE) ## HS5 to NAICS concord_hs_naics(sourcevar = c("1206", "8546"), origin = "HS5", destination = "NAICS", all = TRUE) concord_hs_naics(sourcevar = c("120600", "854690"), origin = "HS5", destination = "NAICS", dest.digit = 4, all = TRUE) ## NAICS to HS concord_hs_naics(sourcevar = c("1111", "3271"), origin = "NAICS", destination = "HS", all = TRUE) concord_hs_naics(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "HS", dest.digit = 4, all = TRUE)
## HS combined to NAICS # one input: one-to-one match concord_hs_naics(sourcevar = "120600", origin = "HS", destination = "NAICS", all = FALSE) concord_hs_naics(sourcevar = "120600", origin = "HS", destination = "NAICS", all = TRUE) # two inputs: multiple-to-one match concord_hs_naics(sourcevar = c("120600", "120400"), origin = "HS", destination = "NAICS", all = FALSE) concord_hs_naics(sourcevar = c("120600", "120400"), origin = "HS", destination = "NAICS", all = TRUE) # two inputs: repeated concord_hs_naics(sourcevar = c("120600", "120600"), origin = "HS", destination = "NAICS", all = FALSE) # one to multiple matches concord_hs_naics(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", all = TRUE) # if no match, will return NA and give warning message concord_hs_naics(sourcevar = c("120600", "120800"), origin = "HS", destination = "NAICS", all = FALSE) # 4-digit inputs concord_hs_naics(sourcevar = c("1206", "8546"), origin = "HS", destination = "NAICS", all = TRUE) # 4-digit outputs concord_hs_naics(sourcevar = c("120600", "854690"), origin = "HS", destination = "NAICS", dest.digit = 4, all = TRUE) ## HS5 to NAICS concord_hs_naics(sourcevar = c("1206", "8546"), origin = "HS5", destination = "NAICS", all = TRUE) concord_hs_naics(sourcevar = c("120600", "854690"), origin = "HS5", destination = "NAICS", dest.digit = 4, all = TRUE) ## NAICS to HS concord_hs_naics(sourcevar = c("1111", "3271"), origin = "NAICS", destination = "HS", all = TRUE) concord_hs_naics(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "HS", dest.digit = 4, all = TRUE)
Concords Harmonized System codes (HS0, HS1, HS2, HS3, HS4, HS5, HS6, HS combined) to and from Standard International Trade Classification codes (SITC Revision 1, 2, 3, 4).
concord_hs_sitc(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_hs_sitc(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of HS or SITC codes. The function accepts 2, 4, 6-digit codes for HS and 1 to 5-digit codes for SITC. |
origin |
A string setting the input industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), and "SITC4" (2006). |
destination |
A string setting the output industry classification: "HS" (combined), "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2, 4, or 6 digits for HS codes and 1 to 5 digits for SITC codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
Concordance tables provided by:
World Integrated Trade Solution (WITS), World Bank <https://wits.worldbank.org/product_concordance.html>
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
## HS combined to SITC4 # one input: one-to-one match concord_hs_sitc(sourcevar = "120600", origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) concord_hs_sitc(sourcevar = "120600", origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # two inputs: multiple-to-one match concord_hs_sitc(sourcevar = c("010110", "010119"), origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) concord_hs_sitc(sourcevar = c("010110", "010119"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # two inputs: repeated concord_hs_sitc(sourcevar = c("120600", "120600"), origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) # one to multiple matches concord_hs_sitc(sourcevar = c("1206", "1001"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # if no match, will return NA and give warning message concord_hs_sitc(sourcevar = c("120600", "120610"), origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) # 4-digit inputs, 5-digit outputs concord_hs_sitc(sourcevar = c("1206", "8546"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # 6-digit inputs, 3-digit outputs concord_hs_sitc(sourcevar = c("120600", "854610"), origin = "HS", destination = "SITC4", dest.digit = 3, all = TRUE) ## SITC4 to HS combined concord_hs_sitc(sourcevar = c("22240", "77322"), origin = "SITC4", destination = "HS", dest.digit = 6, all = FALSE)
## HS combined to SITC4 # one input: one-to-one match concord_hs_sitc(sourcevar = "120600", origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) concord_hs_sitc(sourcevar = "120600", origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # two inputs: multiple-to-one match concord_hs_sitc(sourcevar = c("010110", "010119"), origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) concord_hs_sitc(sourcevar = c("010110", "010119"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # two inputs: repeated concord_hs_sitc(sourcevar = c("120600", "120600"), origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) # one to multiple matches concord_hs_sitc(sourcevar = c("1206", "1001"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # if no match, will return NA and give warning message concord_hs_sitc(sourcevar = c("120600", "120610"), origin = "HS", destination = "SITC4", dest.digit = 5, all = FALSE) # 4-digit inputs, 5-digit outputs concord_hs_sitc(sourcevar = c("1206", "8546"), origin = "HS", destination = "SITC4", dest.digit = 5, all = TRUE) # 6-digit inputs, 3-digit outputs concord_hs_sitc(sourcevar = c("120600", "854610"), origin = "HS", destination = "SITC4", dest.digit = 3, all = TRUE) ## SITC4 to HS combined concord_hs_sitc(sourcevar = c("22240", "77322"), origin = "SITC4", destination = "HS", dest.digit = 6, all = FALSE)
Concords codes within the International Standard Industrial Classification codes (ISIC Revision 2, 3, 3.1, 4).
concord_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of ISIC codes. The function accepts 1 to 4-digit ISIC codes. |
origin |
A string setting the input industry classification: "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
destination |
A string setting the output industry classification: "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 1 to 4-digit ISIC codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use ISIC3 code 0111 instead of 111)—results may be buggy otherwise.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# ISIC3 to ISIC2 concord_isic(sourcevar = c("0111", "1721"), origin = "ISIC3", destination = "ISIC2", dest.digit = 4, all = TRUE)
# ISIC3 to ISIC2 concord_isic(sourcevar = c("0111", "1721"), origin = "ISIC3", destination = "ISIC2", dest.digit = 4, all = TRUE)
Concords International Standard Industrial Classification codes (ISIC Revision 2, 3, 3.1, 4) to and from Broad Economic Classification codes (BEC Revision 4) via the bridge of Harmonized System codes.
concord_isic_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
concord_isic_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
sourcevar |
An input character vector of ISIC or BEC codes. The function accepts 1 to 4-digit codes for ISIC and 1 to 3-digit codes for BEC. |
origin |
A string setting the input industry classification: "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
destination |
A string setting the output industry classification: "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 1 to 4 digits for ISIC and 1 to 3 digits for BEC codes. The default is 2 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# one input: one-to-multiple match concord_isic_bec(sourcevar = "1110", origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) concord_isic_bec(sourcevar = "1110", origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = TRUE) # two inputs: multiple-to-multiple match concord_isic_bec(sourcevar = c("3211", "2901"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) concord_isic_bec(sourcevar = c("3211", "2901"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = TRUE) # repeated inputs concord_isic_bec(sourcevar = c("3720", "3720"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) # if no match, will return NA and give warning message concord_isic_bec(sourcevar = c("3721", "2911"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) # 3-digit inputs, 1-digit outputs concord_isic_bec(sourcevar = c("372", "381"), origin = "ISIC2", destination = "BEC4", dest.digit = 1, all = TRUE) # BEC4 to ISIC2 concord_isic_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "ISIC2", dest.digit = 4, all = FALSE)
# one input: one-to-multiple match concord_isic_bec(sourcevar = "1110", origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) concord_isic_bec(sourcevar = "1110", origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = TRUE) # two inputs: multiple-to-multiple match concord_isic_bec(sourcevar = c("3211", "2901"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) concord_isic_bec(sourcevar = c("3211", "2901"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = TRUE) # repeated inputs concord_isic_bec(sourcevar = c("3720", "3720"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) # if no match, will return NA and give warning message concord_isic_bec(sourcevar = c("3721", "2911"), origin = "ISIC2", destination = "BEC4", dest.digit = 2, all = FALSE) # 3-digit inputs, 1-digit outputs concord_isic_bec(sourcevar = c("372", "381"), origin = "ISIC2", destination = "BEC4", dest.digit = 1, all = TRUE) # BEC4 to ISIC2 concord_isic_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "ISIC2", dest.digit = 4, all = FALSE)
Concords codes within the North American Industry Classification System codes (NAICS2002, NAICS2007, NAICS2012, NAICS2017).
concord_naics(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_naics(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of NAICS codes. The function accepts 2 to 6-digit NAICS codes. |
origin |
A string setting the input industry classification: "NAICS2002", "NAICS2007", "NAICS2012", and "NAICS2017". |
destination |
A string setting the output industry classification: "NAICS2002", "NAICS2007", "NAICS2012", and "NAICS2017". |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2 to 6-digit NAICS codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Concordance tables provided by:
United State Census Bureau <https://www.census.gov/eos/www/naics/concordances/concordances.html>
concord_naics(sourcevar = c("2111", "3352"), origin = "NAICS2017", destination = "NAICS2002", dest.digit = 6, all = TRUE) concord_naics(sourcevar = c("2111", "3352"), origin = "NAICS2017", destination = "NAICS2007", dest.digit = 6, all = TRUE) concord_naics(sourcevar = c("2111", "3352"), origin = "NAICS2017", destination = "NAICS2012", dest.digit = 6, all = TRUE)
concord_naics(sourcevar = c("2111", "3352"), origin = "NAICS2017", destination = "NAICS2002", dest.digit = 6, all = TRUE) concord_naics(sourcevar = c("2111", "3352"), origin = "NAICS2017", destination = "NAICS2007", dest.digit = 6, all = TRUE) concord_naics(sourcevar = c("2111", "3352"), origin = "NAICS2017", destination = "NAICS2012", dest.digit = 6, all = TRUE)
Concords North American Industry Classification System codes (NAICS2002, NAICS2007, NAICS2012, NAICS2017, NAICS combined) to and from Broad Economic Classification codes (BEC Revision 4) via the bridge of Harmonized System codes.
concord_naics_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
concord_naics_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
sourcevar |
An input character vector of NAICS or BEC codes. The function accepts 2 to 6-digit codes for NAICS and 1 to 3-digit codes for BEC. |
origin |
A string setting the input industry classification: "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined), "BEC4" (2016). |
destination |
A string setting the output industry classification: "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined), "BEC4" (2016). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2 to 6 digits for NAICS and 1 to 3 digits for BEC codes. The default is 2 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# one input: one-to-one match concord_naics_bec(sourcevar = "11111", origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) concord_naics_bec(sourcevar = "212325", origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = TRUE) # two inputs: multiple-to-multiple match concord_naics_bec(sourcevar = c("11291", "31511"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) concord_naics_bec(sourcevar = c("11291", "31511"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = TRUE) # repeated inputs concord_naics_bec(sourcevar = c("11251", "11251"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) # if no match, will return NA and give warning message concord_naics_bec(sourcevar = c("23721", "23721"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) # 4-digit inputs, 1-digit outputs concord_naics_bec(sourcevar = c("1129", "3151"), origin = "NAICS2002", destination = "BEC4", dest.digit = 1, all = TRUE) # BEC4 to NAICS2002 concord_naics_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "NAICS2002", dest.digit = 6, all = FALSE)
# one input: one-to-one match concord_naics_bec(sourcevar = "11111", origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) concord_naics_bec(sourcevar = "212325", origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = TRUE) # two inputs: multiple-to-multiple match concord_naics_bec(sourcevar = c("11291", "31511"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) concord_naics_bec(sourcevar = c("11291", "31511"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = TRUE) # repeated inputs concord_naics_bec(sourcevar = c("11251", "11251"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) # if no match, will return NA and give warning message concord_naics_bec(sourcevar = c("23721", "23721"), origin = "NAICS2002", destination = "BEC4", dest.digit = 2, all = FALSE) # 4-digit inputs, 1-digit outputs concord_naics_bec(sourcevar = c("1129", "3151"), origin = "NAICS2002", destination = "BEC4", dest.digit = 1, all = TRUE) # BEC4 to NAICS2002 concord_naics_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "NAICS2002", dest.digit = 6, all = FALSE)
Concords North American Industry Classification System codes (NAICS2002, NAICS2007, NAICS2012, NAICS2017) to and from International Standard Industrial Classification codes (ISIC Revision 2, 3, 3.1, 4).
concord_naics_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_naics_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of NAICS or ISIC codes. The function accepts 2 to 6-digit codes for NAICS and 1 to 4-digit codes for ISIC. |
origin |
A string setting the input industry classification: "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
destination |
A string setting the output industry classification: "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 2 to 6 digits for NAICS codes and 1 to 4 digits for ISIC codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use ISIC4 code 0111 instead of 111)—results may be buggy otherwise.
Concordance tables provided by:
The U.S. Census Bureau <https://www.census.gov/eos/www/naics/concordances/concordances.html>
## NAICS2017 to ISIC4 concord_naics_isic(sourcevar = c("111120", "326199"), origin = "NAICS2017", destination = "ISIC4", dest.digit = 4, all = TRUE)
## NAICS2017 to ISIC4 concord_naics_isic(sourcevar = c("111120", "326199"), origin = "NAICS2017", destination = "ISIC4", dest.digit = 4, all = TRUE)
Concords codes within the Standard International Trade Classification classification (SITC Revision 1, 2, 3, 4).
concord_sitc(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_sitc(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of SITC codes. The function accepts 1 to 5-digit SITC codes. |
origin |
A string setting the input industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006). |
destination |
A string setting the output industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 1 to 5-digit SITC codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use SITC code 01211 instead of 1211)—results may be buggy otherwise.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# SITC4 to SITC3 concord_sitc(sourcevar = c("22240", "04110"), origin = "SITC4", destination = "SITC3", dest.digit = 5, all = TRUE) # SITC1 to SITC4 concord_sitc(sourcevar = c("22180", "04100"), origin = "SITC1", destination = "SITC4", dest.digit = 5, all = TRUE)
# SITC4 to SITC3 concord_sitc(sourcevar = c("22240", "04110"), origin = "SITC4", destination = "SITC3", dest.digit = 5, all = TRUE) # SITC1 to SITC4 concord_sitc(sourcevar = c("22180", "04100"), origin = "SITC1", destination = "SITC4", dest.digit = 5, all = TRUE)
Concords Standard International Trade Classification codes (SITC1, SITC2, SITC3, SITC4) to and from Broad Economic Classification codes (BEC Revision 4).
concord_sitc_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
concord_sitc_bec(sourcevar, origin, destination, dest.digit = 2, all = FALSE)
sourcevar |
An input character vector of SITC or BEC codes. The function accepts 1 to 5-digit codes for SITC and 1 to 3-digit codes for BEC. |
origin |
A string setting the input industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "BEC4" (2016). |
destination |
A string setting the output industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "BEC4" (2016). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 1 to 5 digits for SITC and 1 to 3 digits for BEC codes. The default is 2 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Concordance tables provided by:
United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>
# one input: one-to-one match concord_sitc_bec(sourcevar = "73161", origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) concord_sitc_bec(sourcevar = "73161", origin = "SITC1", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: multiple-to-one match concord_sitc_bec(sourcevar = c("04300", "05484"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) concord_sitc_bec(sourcevar = c("04300", "05484"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: repeated concord_sitc_bec(sourcevar = c("04300", "04300"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) # if no match, will return NA and give warning message concord_sitc_bec(sourcevar = c("04300", "04301"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) # 4-digit inputs, 2-digit outputs concord_sitc_bec(sourcevar = c("0430", "5121"), origin = "SITC1", destination = "BEC4", dest.digit = 2, all = TRUE) # 3-digit inputs, 1-digit outputs concord_sitc_bec(sourcevar = c("043", "512"), origin = "SITC1", destination = "BEC4", dest.digit = 1, all = TRUE) # BEC4 to SITC1 concord_sitc_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "SITC1", dest.digit = 5, all = FALSE)
# one input: one-to-one match concord_sitc_bec(sourcevar = "73161", origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) concord_sitc_bec(sourcevar = "73161", origin = "SITC1", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: multiple-to-one match concord_sitc_bec(sourcevar = c("04300", "05484"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) concord_sitc_bec(sourcevar = c("04300", "05484"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = TRUE) # two inputs: repeated concord_sitc_bec(sourcevar = c("04300", "04300"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) # if no match, will return NA and give warning message concord_sitc_bec(sourcevar = c("04300", "04301"), origin = "SITC1", destination = "BEC4", dest.digit = 3, all = FALSE) # 4-digit inputs, 2-digit outputs concord_sitc_bec(sourcevar = c("0430", "5121"), origin = "SITC1", destination = "BEC4", dest.digit = 2, all = TRUE) # 3-digit inputs, 1-digit outputs concord_sitc_bec(sourcevar = c("043", "512"), origin = "SITC1", destination = "BEC4", dest.digit = 1, all = TRUE) # BEC4 to SITC1 concord_sitc_bec(sourcevar = c("1", "7"), origin = "BEC4", destination = "SITC1", dest.digit = 5, all = FALSE)
Concords Standard International Trade Classification codes (SITC Revision 1, 2, 3, 4) to and from International Standard Industrial Classification codes (ISIC Revision 2, 3, 3.1, 4).
concord_sitc_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_sitc_isic(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of SITC or ISIC codes. The function accepts 1 to 5-digit codes for SITC and 1 to 4-digit codes for ISIC. |
origin |
A string setting the input industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
destination |
A string setting the output industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 1 to 5 digits for SITC codes and 1 to 4 digits for ISIC codes. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
Concordance tables provided by:
World Integrated Trade Solution (WITS), World Bank <https://wits.worldbank.org/product_concordance.html>
## SITC3 to ISIC3 concord_sitc_isic(sourcevar = c("22240", "04110"), origin = "SITC3", destination = "ISIC3", dest.digit = 4, all = TRUE)
## SITC3 to ISIC3 concord_sitc_isic(sourcevar = c("22240", "04110"), origin = "SITC3", destination = "ISIC3", dest.digit = 4, all = TRUE)
Concords Standard International Trade Classification classification codes (SITC Revision 1, 2, 3, 4) to and from North American Industry Classification System codes (NAICS2002, NAICS2007, NAICS2012, NAICS2017, NAICS combined).
concord_sitc_naics(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
concord_sitc_naics(sourcevar, origin, destination, dest.digit = 4, all = FALSE)
sourcevar |
An input character vector of SITC or NAICS codes. The function accepts 1 to 5-digit codes for SITC and 2 to 6-digit codes for NAICS. |
origin |
A string setting the input industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined). |
destination |
A string setting the output industry classification: "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "NAICS" (combined). |
dest.digit |
An integer indicating the preferred number of digits for output codes. Allows 1 to 5-digit codes for SITC and 2 to 6-digit codes for NAICS. The default is 4 digits. |
all |
Either TRUE or FALSE. If TRUE, the function will return (1) all matched outputs for each input, and (2) the share of occurrences for each matched output among all matched outputs. Users can use the shares as weights for more precise concordances. If FALSE, the function will only return the matched output with the largest share of occurrences (the mode match). If the mode consists of multiple matches, the function will return the first matched output. |
The matched output(s) for each element of the input vector. Either a list object when all = TRUE or a character vector when all = FALSE.
Always include leading zeros in codes (e.g., use SITC code 01211 instead of 1211)—results may be buggy otherwise.
SITC-NAICS concordances are mapped through HS (combined):
SITC-HS concordance tables are from the World Integrated Trade Solution (WITS), World Bank <https://wits.worldbank.org/product_concordance.html> and United Nations Trade Statistics <https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp>.
HS-NAICS concordance tables are from Pierce and Schott (2009, 2018) <https://faculty.som.yale.edu/peterschott/international-trade-data/>.
## SITC4 to NAICS # one input: one-to-one match concord_sitc_naics(sourcevar = "22240", origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) concord_sitc_naics(sourcevar = "22240", origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # two inputs: multiple-to-one match concord_sitc_naics(sourcevar = c("22240", "04110"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) concord_sitc_naics(sourcevar = c("22240", "04110"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # two inputs: repeated concord_sitc_naics(sourcevar = c("22240", "22240"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) # one to multiple matches concord_sitc_naics(sourcevar = c("22240", "00190"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # if no match, will return NA and give warning message concord_sitc_naics(sourcevar = c("22240", "00160"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) # 4-digit inputs concord_sitc_naics(sourcevar = c("2224", "0019"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # 4-digit outputs concord_sitc_naics(sourcevar = c("22240", "00190"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) ## NAICS to SITC4 concord_sitc_naics(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "SITC4", dest.digit = 4, all = TRUE)
## SITC4 to NAICS # one input: one-to-one match concord_sitc_naics(sourcevar = "22240", origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) concord_sitc_naics(sourcevar = "22240", origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # two inputs: multiple-to-one match concord_sitc_naics(sourcevar = c("22240", "04110"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) concord_sitc_naics(sourcevar = c("22240", "04110"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # two inputs: repeated concord_sitc_naics(sourcevar = c("22240", "22240"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) # one to multiple matches concord_sitc_naics(sourcevar = c("22240", "00190"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # if no match, will return NA and give warning message concord_sitc_naics(sourcevar = c("22240", "00160"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = FALSE) # 4-digit inputs concord_sitc_naics(sourcevar = c("2224", "0019"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) # 4-digit outputs concord_sitc_naics(sourcevar = c("22240", "00190"), origin = "SITC4", destination = "NAICS", dest.digit = 6, all = TRUE) ## NAICS to SITC4 concord_sitc_naics(sourcevar = c("111120", "326199"), origin = "NAICS", destination = "SITC4", dest.digit = 4, all = TRUE)
Returns the description of product codes.
get_desc(sourcevar, origin)
get_desc(sourcevar, origin)
sourcevar |
A character vector of input codes. |
origin |
A string indicating one of the following industry/product classifications: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
A character vector giving the title/description of each element of the input codes.
Please include leading zeros in codes (e.g., use HS code 010110 instead of 10110). For BEC4 only, use original codes or add trailing zeroes if necessary (e.g., 7 or 700 instead of 007). Results may be buggy otherwise.
Data consolidated from
The U.S. Census Bureau <https://www.census.gov/>
The U.S. Bureau of Labor Statistics <https://www.bls.gov/>
UN Comtrade <https://comtrade.un.org/>
UN Trade Statistics <https://unstats.un.org/unsd/trade/default.asp>
# HS get_desc(sourcevar = c("120600", "854690"), origin = "HS") # Returns NA when no concordances exist and gives warning message get_desc(sourcevar = c("120600", "120601", "854690"), origin = "HS") # HS0 get_desc(sourcevar = c("120600", "854690"), origin = "HS0") # HS1 get_desc(sourcevar = c("120600", "854690"), origin = "HS1") # HS2 get_desc(sourcevar = c("120600", "854690"), origin = "HS2") # HS3 get_desc(sourcevar = c("120600", "854690"), origin = "HS3") # HS4 get_desc(sourcevar = c("120600", "854690"), origin = "HS4") # HS5 get_desc(sourcevar = c("120600", "854690"), origin = "HS5") # HS6 get_desc(sourcevar = c("120600", "854690"), origin = "HS6") # NAICS 2002 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2002") # NAICS 2007 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2007") # NAICS 2012 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2012") # NAICS 2017 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2017") # ISIC2 get_desc(sourcevar = c("3114", "3831"), origin = "ISIC2") # ISIC3 get_desc(sourcevar = c("1512", "3110"), origin = "ISIC3") # ISIC4 get_desc(sourcevar = c("1512", "3110"), origin = "ISIC4") # SITC1 get_desc(sourcevar = c("4216", "7232"), origin = "SITC1") # SITC2 get_desc(sourcevar = c("4236", "7732"), origin = "SITC2") # SITC3 get_desc(sourcevar = c("4221", "7732"), origin = "SITC3") # SITC4 get_desc(sourcevar = c("4221", "7732"), origin = "SITC4") # BEC4 get_desc(sourcevar = c("111", "112"), origin = "BEC4")
# HS get_desc(sourcevar = c("120600", "854690"), origin = "HS") # Returns NA when no concordances exist and gives warning message get_desc(sourcevar = c("120600", "120601", "854690"), origin = "HS") # HS0 get_desc(sourcevar = c("120600", "854690"), origin = "HS0") # HS1 get_desc(sourcevar = c("120600", "854690"), origin = "HS1") # HS2 get_desc(sourcevar = c("120600", "854690"), origin = "HS2") # HS3 get_desc(sourcevar = c("120600", "854690"), origin = "HS3") # HS4 get_desc(sourcevar = c("120600", "854690"), origin = "HS4") # HS5 get_desc(sourcevar = c("120600", "854690"), origin = "HS5") # HS6 get_desc(sourcevar = c("120600", "854690"), origin = "HS6") # NAICS 2002 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2002") # NAICS 2007 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2007") # NAICS 2012 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2012") # NAICS 2017 get_desc(sourcevar = c("111120", "326199"), origin = "NAICS2017") # ISIC2 get_desc(sourcevar = c("3114", "3831"), origin = "ISIC2") # ISIC3 get_desc(sourcevar = c("1512", "3110"), origin = "ISIC3") # ISIC4 get_desc(sourcevar = c("1512", "3110"), origin = "ISIC4") # SITC1 get_desc(sourcevar = c("4216", "7232"), origin = "SITC1") # SITC2 get_desc(sourcevar = c("4236", "7732"), origin = "SITC2") # SITC3 get_desc(sourcevar = c("4221", "7732"), origin = "SITC3") # SITC4 get_desc(sourcevar = c("4221", "7732"), origin = "SITC4") # BEC4 get_desc(sourcevar = c("111", "112"), origin = "BEC4")
Calculates and returns the level (proportion) of intermediate goods production in an industry based on product descriptions.
get_intermediate(sourcevar, origin)
get_intermediate(sourcevar, origin)
sourcevar |
An input character vector of industry codes to look up. |
origin |
A string indicating one of the following industry/product classifications: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC4" (2008), "BEC4" (2016). |
Uses keywords ("part(s)", "intermediate", and "component") to identify intermediate-goods producing industries (at the most disaggregated level in the description data), and then calculates and returns the proportion these industries occupy among each input code.
Please include leading zeros in codes (e.g., use HS code 010110 instead of 10110). For BEC4 only, use original codes or add trailing zeroes if necessary (e.g., 7 or 700 instead of 007). Also note that the results may not be informative for broad categories like BEC4.
Product descriptions consolidated from
The U.S. Census Bureau <https://www.census.gov/>
The U.S. Bureau of Labor Statistics <https://www.bls.gov/>
UN Comtrade <https://comtrade.un.org/>
UN Trade Statistics <https://unstats.un.org/unsd/trade/default.asp>
# NAICS get_intermediate(sourcevar = c("11", "31-33", "42"), origin = "NAICS2017") get_intermediate(sourcevar = c("3131", "3363"), origin = "NAICS2017") # HS get_intermediate(sourcevar = c("03", "84"), origin = "HS5") # SITC get_intermediate(sourcevar = c("05", "75"), origin = "SITC4")
# NAICS get_intermediate(sourcevar = c("11", "31-33", "42"), origin = "NAICS2017") get_intermediate(sourcevar = c("3131", "3363"), origin = "NAICS2017") # HS get_intermediate(sourcevar = c("03", "84"), origin = "HS5") # SITC get_intermediate(sourcevar = c("05", "75"), origin = "SITC4")
Returns Rauch's classification of product differentiation. Rauch classifies 4-digit SITC2 codes according to three possible types: differentiated products ("n"), reference priced ("r"), and homogeneous goods traded on an organized exchange ("w").
get_proddiff(sourcevar, origin, setting = "CON", prop = "")
get_proddiff(sourcevar, origin, setting = "CON", prop = "")
sourcevar |
An input character vector of industry/product codes. |
origin |
A string setting the input coding scheme. Supports the following classifications: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC4" (2008), "BEC4" (2016). |
setting |
Choose "CON" (conservative, default) or "LIB" (liberal) classification. |
prop |
Can be set to "n", "r", or "w", in which case the function will return, respectively, the proportion of type "n", "r", or "w" in the resulting vector of Rauch indices. If prop is not set to any of these, then the function returns, for each input code, a dataframe that summarizes all the frequencies and proportions of type "w", "r", and "n". |
Concords each element of the input vector to 4-digit SITC2 codes, then uses the corresponding codes as input to extract Rauch product differentiation indices.
Please include leading zeros in codes (e.g., use HS code 010110 instead of 10110). For BEC4 only, use original codes or add trailing zeroes if necessary (e.g., 7 or 700 instead of 007). Results may be buggy otherwise.
Data from Jon Haveman's International Trade Data page <http://www.macalester.edu/research/economics/PAGE/HAVEMAN/Trade.Resources/TradeData.html#Rauch>.
Rauch, James E. 1999. "Networks Versus Markets in International Trade," Journal of International Economics 48(1): 7–35.
# SITC2 input get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "r") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "w") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "n") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "LIB", prop = "") # SITC3 input get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC3", setting = "CON", prop = "") # SITC4 input get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC4", setting = "CON", prop = "") # HS input get_proddiff(sourcevar = c("1206", "1001", "8546"), origin = "HS", setting = "CON", prop = "") # NAICS input get_proddiff(sourcevar = c("111120", "326199"), origin = "NAICS", setting = "CON", prop = "") # BEC4 input get_proddiff(sourcevar = c("11", "21"), origin = "BEC4", setting = "CON", prop = "")
# SITC2 input get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "r") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "w") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "CON", prop = "n") get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC2", setting = "LIB", prop = "") # SITC3 input get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC3", setting = "CON", prop = "") # SITC4 input get_proddiff(sourcevar = c("22240", "04110"), origin = "SITC4", setting = "CON", prop = "") # HS input get_proddiff(sourcevar = c("1206", "1001", "8546"), origin = "HS", setting = "CON", prop = "") # NAICS input get_proddiff(sourcevar = c("111120", "326199"), origin = "NAICS", setting = "CON", prop = "") # BEC4 input get_proddiff(sourcevar = c("11", "21"), origin = "BEC4", setting = "CON", prop = "")
Returns product codes for which descriptions match user-specified keywords.
get_product(pattern, origin, digits = 4, type = "regex", ignore.case = TRUE)
get_product(pattern, origin, digits = 4, type = "regex", ignore.case = TRUE)
pattern |
String pattern to look for. The function utilizes the function |
origin |
A string indicating one of the following industry/product classifications: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC4" (2008), "BEC4" (2016). |
digits |
An integer indicating the preferred number of digits for output codes. The default is 4 digits. Allows 1 to 5-digit codes for the SITC classification; 2, 4, 6-digit codes for NAICS and HS classifications; 1 to 4-digit codes for the ISIC classification; 1 to 3-digit codes for the BEC classification. |
type |
A string indicating the type of pattern interpretation. Three options are available: |
ignore.case |
If TRUE (by default), pattern dection will ignore case differences. |
A character vector of product codes that match user specified description patterns.
Product descriptions consolidated from
The U.S. Census Bureau <https://www.census.gov/>
The U.S. Bureau of Labor Statistics <https://www.bls.gov/>
UN Comtrade <https://comtrade.un.org/>
UN Trade Statistics <https://unstats.un.org/unsd/trade/default.asp>
# find manufacture-related NAICS codes manu.vec <- get_product(pattern = "manu", origin = "NAICS2017", digits = 4, type = "regex", ignore.case = TRUE) manu.vec # check product description get_desc(manu.vec, origin = "NAICS2017") # 6-digit outputs get_product(pattern = "manu", origin = "NAICS2017", digits = 6, type = "regex", ignore.case = TRUE) # choose different interpretation types get_product(pattern = "manu", origin = "NAICS2017", digits = 4, type = "fixed", ignore.case = TRUE) get_product(pattern = "manu", origin = "NAICS2017", digits = 4, type = "coll", ignore.case = TRUE)
# find manufacture-related NAICS codes manu.vec <- get_product(pattern = "manu", origin = "NAICS2017", digits = 4, type = "regex", ignore.case = TRUE) manu.vec # check product description get_desc(manu.vec, origin = "NAICS2017") # 6-digit outputs get_product(pattern = "manu", origin = "NAICS2017", digits = 6, type = "regex", ignore.case = TRUE) # choose different interpretation types get_product(pattern = "manu", origin = "NAICS2017", digits = 4, type = "fixed", ignore.case = TRUE) get_product(pattern = "manu", origin = "NAICS2017", digits = 4, type = "coll", ignore.case = TRUE)
Returns product-level import demand price elasticities based on 3-digit HS0 estimates from Broda and Weinstein (QJE, 2006) for 73 countries.
get_sigma( sourcevar, origin, country = "USA", use_SITC = FALSE, give_avg = TRUE )
get_sigma( sourcevar, origin, country = "USA", use_SITC = FALSE, give_avg = TRUE )
sourcevar |
An input character vector of industry/product codes. |
origin |
A string setting the input coding scheme. Supports the following classifications: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
country |
A string setting the ISO 3-letter country code for which to return import demand elasticities (default = "USA"). For a list of available countries, load the package and type "unique(sigma_hs0_3d$iso3c)". |
use_SITC |
Set to FALSE by default. Set to TRUE if you wish to look up elasticities via 5-digit SITC3 codes instead. Only available for the United States. |
give_avg |
Set to FALSE if you wish to obtain the full vector of elasticities for all matching codes of each element in the input vector. When set to TRUE (as by default) each output element will be a simple average of all elasticities (of matched codes) in the corresponding vector. |
Concords vector of input codes to 3-digit HS0 codes and then extracts the corresponding product-level import demand elasticities in the country selected by the user. For the United States (only), Broda and Weinstein (2006) have also estimated elasticities based on more fine-grained 5-digit SITC3 codes. Set use_SITC
to TRUE to obtain elasticities in the United States via this method.
Always include leading zeros in codes (e.g., use HS code 010110 instead of 10110)—results may be buggy otherwise.
Data from David E. Weinstein's webpage <http://www.columbia.edu/~dew35/TradeElasticities/TradeElasticities.html>.
Broda, Christian, and David E. Weinstein. 2006. "Globalization and the Gains from Variety," Quarterly Journal of Economics, 121(2): 541–585.
# South Korea, SITC4 input get_sigma(sourcevar = c("21170", "69978", "21170"), origin = "SITC4", country = "KOR", use_SITC = FALSE, give_avg = TRUE) get_sigma(sourcevar = c("21170", "69978", "21170"), origin = "SITC4", country = "KOR", use_SITC = FALSE, give_avg = FALSE) # United States, HS5 input, SITC3 estimates get_sigma(sourcevar = c("0101", "0207", "0101"), origin = "HS5", country = "USA", use_SITC = TRUE, give_avg = FALSE) get_sigma(sourcevar = c("0101", "0207", "0101"), origin = "HS5", country = "USA", use_SITC = TRUE, give_avg = TRUE)
# South Korea, SITC4 input get_sigma(sourcevar = c("21170", "69978", "21170"), origin = "SITC4", country = "KOR", use_SITC = FALSE, give_avg = TRUE) get_sigma(sourcevar = c("21170", "69978", "21170"), origin = "SITC4", country = "KOR", use_SITC = FALSE, give_avg = FALSE) # United States, HS5 input, SITC3 estimates get_sigma(sourcevar = c("0101", "0207", "0101"), origin = "HS5", country = "USA", use_SITC = TRUE, give_avg = FALSE) get_sigma(sourcevar = c("0101", "0207", "0101"), origin = "HS5", country = "USA", use_SITC = TRUE, give_avg = TRUE)
Returns measures of industry upstreamness and downstreamness based on Antras and Chor (2018) and Antras, Chor, Fally and Hillberry (2012).
get_upstream( sourcevar, origin, country, year, setting = "GVC_Ui", detailed = FALSE )
get_upstream( sourcevar, origin, country, year, setting = "GVC_Ui", detailed = FALSE )
sourcevar |
An input character vector of industry codes to look up. |
origin |
A string indicating one of the following industry/product classifications: "HS0" (1988/92), "HS1" (1996), "HS2" (2002), "HS3" (2007), "HS4" (2012), "HS5" (2017), "HS6" (2022), "HS" (combined), "SITC1" (1950), "SITC2" (1974), "SITC3" (1985), "SITC4" (2006), "NAICS2002", "NAICS2007", "NAICS2012", "NAICS2017", "ISIC2" (1968), "ISIC3" (1989), "ISIC3.1" (2002), "ISIC4" (2008), "BEC4" (2016). |
country |
A string setting the ISO 3-letter country code for which to return values (default = "USA"). Antras and Chor (2018) provide estimates for 40 countries and the Rest of the World (RoW). For a list of available countries, load the package and type "unique(upstream$ISO3C)". |
year |
An integer setting the year for which to return values. Antras and Chor (2018) provide estimates for 1995-2011. The default returns estimates for 2011. |
setting |
Choose one of the four available measures from Antras and Chor (2018).
|
detailed |
Choose whether to return more detailed industry-level GVC_Ui estimates following Antras, Chor, Fally, and Hillberry (2012). Note that these estimates only exist for USA in 2002, 2007, and 2012.
|
Concords each element of the input vector to 2-digit ISIC3 codes, then uses the corresponding codes as input to calculate weighted estimates of upstreamness or downstreamness. For detailed estimates, the function concords each element of the input vector to 6-digit BEA codes, and then calculates weighted average estimates of upstreamness (GVC_Ui).
Data from Pol Antras' webpage:
<https://scholar.harvard.edu/antras/publications/measurement-upstreamness-and-downstreamness-global-valuechains>
<https://scholar.harvard.edu/antras/publications/measuring-upstreamness-production-and-trade-flows>
Antras, Pol, and Davin Chor. 2018. "On the Measurement of Upstreamness and Downstreamness in Global Value Chains." World Trade Evolution: Growth, Productivity and Employment, 126-194. Taylor & Francis Group.
Antras, Pol, Davin Chor, Thibault Fally, and Russell Hillberry. 2012. "Measuring the Upstreamness of Production and Trade Flows." American Economic Review Papers and Proceedings 102(3), 412-416.
# ISIC3 get_upstream(sourcevar = c("01", "29", "29", "80"), origin = "ISIC3", country = "USA", year = "2011", setting = "GVC_Ui", detailed = FALSE) # HS5 get_upstream(sourcevar = c("0101", "0301", "7014", "8420"), origin = "HS5", country = "USA", year = "2012", setting = "GVC_Ui", detailed = TRUE)
# ISIC3 get_upstream(sourcevar = c("01", "29", "29", "80"), origin = "ISIC3", country = "USA", year = "2011", setting = "GVC_Ui", detailed = FALSE) # HS5 get_upstream(sourcevar = c("0101", "0301", "7014", "8420"), origin = "HS5", country = "USA", year = "2012", setting = "GVC_Ui", detailed = TRUE)
A dataset containing concordances between HS and BEC4 classifications.
hs_bec4
hs_bec4
A data frame with 6,830 rows and 6 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS (Combined) classification (H0 to H6).
hs_desc
hs_desc
A data frame with 8261 rows and 2 variables:
HS Code
HS Description
A dataset containing concordances between HS (combined) and ISIC2 classifications.
hs_isic2
hs_isic2
A data frame with 6542 rows and 7 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS (combined) and ISIC3 classifications.
hs_isic3
hs_isic3
A data frame with 6539 rows and 7 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS (combined) and ISIC3.1 classifications.
hs_isic31
hs_isic31
A data frame with 6,873 rows and 7 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
4-digit ISIC3.1 Code
3-digit ISIC3.1 Code
2-digit ISIC3.1 Code
1-digit ISIC3.1 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS (combined) and ISIC4 classifications.
hs_isic4
hs_isic4
A data frame with 22,885 rows and 7 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS (combined) and NAICS (combined) classifications.
hs_naics
hs_naics
A data frame with 10399 rows and 8 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS (combined) and SITC1 classifications.
hs_sitc1
hs_sitc1
A data frame with 7683 rows and 8 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS (combined) and SITC2 classifications.
hs_sitc2
hs_sitc2
A data frame with 8346 rows and 8 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS (combined) and SITC3 classifications.
hs_sitc3
hs_sitc3
A data frame with 6826 rows and 8 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS (combined) and SITC4 classifications.
hs_sitc4
hs_sitc4
A data frame with 6582 rows and 8 variables:
6-digit HS Code
4-digit HS Code
2-digit HS Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS1 and BEC4 classifications.
hs0_bec4
hs0_bec4
A data frame with 5,156 rows and 6 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS0 classification.
hs0_desc
hs0_desc
A data frame with 6380 rows and 2 variables:
HS0 Code
HS0 Description
https://comtrade.un.org/data/cache/classificationH0.json
A dataset containing concordances between HS0 and ISIC2 classifications.
hs0_isic2
hs0_isic2
A data frame with 5018 rows and 7 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS0 and ISIC3 classifications.
hs0_isic3
hs0_isic3
A data frame with 5018 rows and 7 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS0 and NAICS (combined) classifications.
hs0_naics
hs0_naics
A data frame with 8058 rows and 8 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS0 and SITC1 classification.
hs0_sitc1
hs0_sitc1
A data frame with 5012 rows and 8 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS0 and SITC2 classifications.
hs0_sitc2
hs0_sitc2
A data frame with 5017 rows and 8 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS0 and SITC3 classifications.
hs0_sitc3
hs0_sitc3
A data frame with 5017 rows and 8 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS0 and SITC4 classifications.
hs0_sitc4
hs0_sitc4
A data frame with 5018 rows and 8 variables:
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS1 and BEC4 classifications.
hs1_bec4
hs1_bec4
A data frame with 5,334 rows and 6 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS1 classification.
hs1_desc
hs1_desc
A data frame with 6473 rows and 2 variables:
HS1 Code
HS1 Description
https://comtrade.un.org/data/cache/classificationH1.json
A dataset containing concordances between HS1 and HS0 classification.
hs1_hs0
hs1_hs0
A data frame with 5130 rows and 6 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS1 and ISIC2 classifications.
hs1_isic2
hs1_isic2
A data frame with 5113 rows and 7 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS1 and ISIC3 classifications.
hs1_isic3
hs1_isic3
A data frame with 5113 rows and 7 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS1 and NAICS (combined) classifications.
hs1_naics
hs1_naics
A data frame with 8297 rows and 8 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS1 and SITC1 classifications.
hs1_sitc1
hs1_sitc1
A data frame with 5106 rows and 8 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS1 and SITC2 classifications.
hs1_sitc2
hs1_sitc2
A data frame with 5111 rows and 8 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS1 and SITC3 classifications.
hs1_sitc3
hs1_sitc3
A data frame with 5111 rows and 8 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS1 and SITC4 classifications.
hs1_sitc4
hs1_sitc4
A data frame with 5111 rows and 8 variables:
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS2 and BEC4 classifications.
hs2_bec4
hs2_bec4
A data frame with 5,351 rows and 6 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS2 classification.
hs2_desc
hs2_desc
A data frame with 6568 rows and 2 variables:
HS2 Code
HS2 Description
https://comtrade.un.org/data/cache/classificationH2.json
A dataset containing concordances between HS2 and HS0 classification.
hs2_hs0
hs2_hs0
A data frame with 5223 rows and 6 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS2 and HS1 classification.
hs2_hs1
hs2_hs1
A data frame with 5223 rows and 6 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS2 and ISIC2 classifications.
hs2_isic2
hs2_isic2
A data frame with 5224 rows and 7 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS2 and ISIC3 classifications.
hs2_isic3
hs2_isic3
A data frame with 5224 rows and 7 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS2 and NAICS (combined) classifications.
hs2_naics
hs2_naics
A data frame with 8609 rows and 8 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS2 and SITC1 classifications.
hs2_sitc1
hs2_sitc1
A data frame with 5217 rows and 8 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS2 and SITC2 classifications.
hs2_sitc2
hs2_sitc2
A data frame with 5222 rows and 8 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS2 and SITC3 classifications.
hs2_sitc3
hs2_sitc3
A data frame with 5222 rows and 8 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS2 and SITC4 classifications.
hs2_sitc4
hs2_sitc4
A data frame with 5220 rows and 8 variables:
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS3 and BEC4 classifications.
hs3_bec4
hs3_bec4
A data frame with 5,050 rows and 6 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS3 classification.
hs3_desc
hs3_desc
A data frame with 6372 rows and 2 variables:
HS3 Code
HS3 Description
https://comtrade.un.org/data/cache/classificationH3.json
A dataset containing concordances between HS3 and HS0 classification.
hs3_hs0
hs3_hs0
A data frame with 5053 rows and 6 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS3 and HS1 classification.
hs3_hs1
hs3_hs1
A data frame with 5052 rows and 6 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS3 and HS2 classification.
hs3_hs2
hs3_hs2
A data frame with 5052 rows and 6 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS3 and ISIC2 classifications.
hs3_isic2
hs3_isic2
A data frame with 5052 rows and 7 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS3 and ISIC3 classifications.
hs3_isic3
hs3_isic3
A data frame with 5052 rows and 7 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS3 and NAICS (combined) classifications.
hs3_naics
hs3_naics
A data frame with 8545 rows and 8 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS3 and SITC1 classifications.
hs3_sitc1
hs3_sitc1
A data frame with 5045 rows and 8 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS3 and SITC2 classifications.
hs3_sitc2
hs3_sitc2
A data frame with 5050 rows and 8 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS3 and SITC3 classifications.
hs3_sitc3
hs3_sitc3
A data frame with 5050 rows and 8 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS3 and SITC4 classifications.
hs3_sitc4
hs3_sitc4
A data frame with 5050 rows and 8 variables:
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS4 and BEC4 classifications.
hs4_bec4
hs4_bec4
A data frame with 5,283 rows and 6 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS4 classification.
hs4_desc
hs4_desc
A data frame with 6528 rows and 2 variables:
HS4 Code
HS4 Description
https://comtrade.un.org/data/cache/classificationH4.json
A dataset containing concordances between HS4 and HS0 classification.
hs4_hs0
hs4_hs0
A data frame with 5206 rows and 6 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and HS1 classification.
hs4_hs1
hs4_hs1
A data frame with 5206 rows and 6 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and HS2 classification.
hs4_hs2
hs4_hs2
A data frame with 5206 rows and 6 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and HS3 classification.
hs4_hs3
hs4_hs3
A data frame with 5205 rows and 6 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and ISIC2 classifications.
hs4_isic2
hs4_isic2
A data frame with 5205 rows and 7 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS4 and ISIC3 classifications.
hs4_isic3
hs4_isic3
A data frame with 5205 rows and 7 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS4 and NAICS (combined) classifications.
hs4_naics
hs4_naics
A data frame with 8790 rows and 8 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS4 and SITC1 classifications.
hs4_sitc1
hs4_sitc1
A data frame with 5199 rows and 8 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and SITC2 classifications.
hs4_sitc2
hs4_sitc2
A data frame with 5205 rows and 8 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and SITC3 classifications.
hs4_sitc3
hs4_sitc3
A data frame with 5206 rows and 8 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS4 and SITC4 classifications.
hs4_sitc4
hs4_sitc4
A data frame with 5205 rows and 8 variables:
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and BEC4 classifications.
hs5_bec4
hs5_bec4
A data frame with 5,511 rows and 6 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS5 classification.
hs5_desc
hs5_desc
A data frame with 6708 rows and 2 variables:
HS5 Code
HS5 Description
https://comtrade.un.org/data/cache/classificationH5.json
A dataset containing concordances between HS5 and HS0 classification.
hs5_hs0
hs5_hs0
A data frame with 5388 rows and 6 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and HS1 classification.
hs5_hs1
hs5_hs1
A data frame with 5388 rows and 6 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and HS2 classification.
hs5_hs2
hs5_hs2
A data frame with 5388 rows and 6 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and HS3 classification.
hs5_hs3
hs5_hs3
A data frame with 5388 rows and 6 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and HS4 classification.
hs5_hs4
hs5_hs4
A data frame with 5388 rows and 6 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and ISIC2 classifications.
hs5_isic2
hs5_isic2
A data frame with 5338 rows and 7 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS5 and ISIC3 classifications.
hs5_isic3
hs5_isic3
A data frame with 5338 rows and 7 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS5 and NAICS (combined) classifications.
hs5_naics
hs5_naics
A data frame with 8973 rows and 8 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS5 and SITC1 classifications.
hs5_sitc1
hs5_sitc1
A data frame with 5381 rows and 8 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and SITC2 classifications.
hs5_sitc2
hs5_sitc2
A data frame with 5387 rows and 8 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and SITC3 classifications.
hs5_sitc3
hs5_sitc3
A data frame with 5387 rows and 8 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS5 and SITC4 classifications.
hs5_sitc4
hs5_sitc4
A data frame with 5387 rows and 8 variables:
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and BEC4 classifications.
hs6_bec4
hs6_bec4
A data frame with 5927 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the HS6 classification.
hs6_desc
hs6_desc
A data frame with 6939 rows and 2 variables:
HS6 Code
HS6 Description
https://comtrade.un.org/data/cache/classificationH6.json
A dataset containing concordances between HS6 and HS0 classification.
hs6_hs0
hs6_hs0
A data frame with 5613 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit HS0 Code
4-digit HS0 Code
2-digit HS0 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and HS1 classification.
hs6_hs1
hs6_hs1
A data frame with 5613 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit HS1 Code
4-digit HS1 Code
2-digit HS1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and HS2 classification.
hs6_hs2
hs6_hs2
A data frame with 5613 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit HS2 Code
4-digit HS2 Code
2-digit HS2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and HS3 classification.
hs6_hs3
hs6_hs3
A data frame with 5613 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit HS3 Code
4-digit HS3 Code
2-digit HS3 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and HS4 classification.
hs6_hs4
hs6_hs4
A data frame with 5613 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit HS4 Code
4-digit HS4 Code
2-digit HS4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and HS5 classification.
hs6_hs5
hs6_hs5
A data frame with 5613 rows and 6 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit HS5 Code
4-digit HS5 Code
2-digit HS5 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and ISIC2 classifications.
hs6_isic2
hs6_isic2
A data frame with 5613 rows and 7 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS6 and ISIC3 classifications.
hs6_isic3
hs6_isic3
A data frame with 5613 rows and 7 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between HS6 and NAICS (combined) classifications.
hs6_naics
hs6_naics
A data frame with 9451 rows and 8 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between HS6 and SITC1 classifications.
hs6_sitc1
hs6_sitc1
A data frame with 5605 rows and 8 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and SITC2 classifications.
hs6_sitc2
hs6_sitc2
A data frame with 5611 rows and 8 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and SITC3 classifications.
hs6_sitc3
hs6_sitc3
A data frame with 5611 rows and 8 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between HS6 and SITC4 classifications.
hs6_sitc4
hs6_sitc4
A data frame with 5611 rows and 8 variables:
6-digit HS6 Code
4-digit HS6 Code
2-digit HS6 Code
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the ISIC2 classification.
isic2_desc
isic2_desc
A data frame with 276 rows and 2 variables:
ISIC2 Code
ISIC2 Description
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing the description of products under the ISIC3 classification.
isic3_desc
isic3_desc
A data frame with 528 rows and 2 variables:
ISIC3 Code
ISIC3 Description
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing concordances between ISIC3 and ISIC2 classifications.
isic3_isic2
isic3_isic2
A data frame with 585 rows and 8 variables:
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing the description of products under the ISIC3.1 classification.
isic3.1_desc
isic3.1_desc
A data frame with 540 rows and 2 variables:
ISIC3.1 Code
ISIC3.1 Description
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing concordances between ISIC3.1 and ISIC2 classifications.
isic31_isic2
isic31_isic2
A data frame with 636 rows and 8 variables:
4-digit ISIC3.1 Code
3-digit ISIC3.1 Code
2-digit ISIC3.1 Code
1-digit ISIC3.1 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing concordances between ISIC3.1 and ISIC3 classifications.
isic31_isic3
isic31_isic3
A data frame with 316 rows and 8 variables:
4-digit ISIC3.1 Code
3-digit ISIC3.1 Code
2-digit ISIC3.1 Code
1-digit ISIC3.1 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing the description of products under the ISIC4 classification.
isic4_desc
isic4_desc
A data frame with 766 rows and 2 variables:
ISIC4 Code
ISIC4 Description
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing concordances between ISIC4 and ISIC2 classifications.
isic4_isic2
isic4_isic2
A data frame with 1706 rows and 8 variables:
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing concordances between ISIC4 and ISIC3 classifications.
isic4_isic3
isic4_isic3
A data frame with 798 rows and 8 variables:
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing concordances between ISIC4 and ISIC3.1 classifications.
isic4_isic31
isic4_isic31
A data frame with 737 rows and 8 variables:
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
4-digit ISIC3.1 Code
3-digit ISIC3.1 Code
2-digit ISIC3.1 Code
1-digit ISIC3.1 Code
https://unstats.un.org/unsd/classifications/Econ/ISIC
A dataset containing the description of products under the NAICS 2002 classification.
naics2002_desc
naics2002_desc
A data frame with 2341 rows and 2 variables:
NAICS 2002 Code
NAICS 2002 Description
https://www.census.gov/eos/www/naics/
A dataset containing concordances between NAICS2002 and ISIC3.1 classifications.
naics2002_isic31
naics2002_isic31
A data frame with 1960 rows and 9 variables:
6-digit NAICS2002 Code
5-digit NAICS2002 Code
4-digit NAICS2002 Code
3-digit NAICS2002 Code
2-digit NAICS2002 Code
4-digit ISIC3.1 Code
3-digit ISIC3.1 Code
2-digit ISIC3.1 Code
1-digit ISIC3.1 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing the description of products under the NAICS 2007 classification.
naics2007_desc
naics2007_desc
A data frame with 2328 rows and 2 variables:
NAICS 2007 Code
NAICS 2007 Description
https://www.census.gov/eos/www/naics/
A dataset containing concordances between NAICS2007 and ISIC4 classifications.
naics2007_isic4
naics2007_isic4
A data frame with 1765 rows and 9 variables:
6-digit NAICS2007 Code
5-digit NAICS2007 Code
4-digit NAICS2007 Code
3-digit NAICS2007 Code
2-digit NAICS2007 Code
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing concordances between NAICS2007 and NAICS2002 classification.
naics2007_naics2002
naics2007_naics2002
A data frame with 1200 rows and 10 variables:
6-digit NAICS2007 Code
5-digit NAICS2007 Code
4-digit NAICS2007 Code
3-digit NAICS2007 Code
2-digit NAICS2007 Code
6-digit NAICS2002 Code
5-digit NAICS2002 Code
4-digit NAICS2002 Code
3-digit NAICS2002 Code
2-digit NAICS2002 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing the description of products under the NAICS 2012 classification.
naics2012_desc
naics2012_desc
A data frame with 2229 rows and 2 variables:
NAICS 2012 Code
NAICS 2012 Description
https://data.bls.gov/cew/apps/bls_naics/v2/bls_naics_app.htm#tab=download&naics=2012
A dataset containing concordances between NAICS2012 and ISIC4 classifications.
naics2012_isic4
naics2012_isic4
A data frame with 1663 rows and 9 variables:
6-digit NAICS2012 Code
5-digit NAICS2012 Code
4-digit NAICS2012 Code
3-digit NAICS2012 Code
2-digit NAICS2012 Code
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing concordances between NAICS2012 and NAICS2002 classification.
naics2012_naics2002
naics2012_naics2002
A data frame with 1184 rows and 6 variables:
6-digit NAICS2012 Code
5-digit NAICS2012 Code
4-digit NAICS2012 Code
3-digit NAICS2012 Code
2-digit NAICS2012 Code
6-digit NAICS2002 Code
5-digit NAICS2002 Code
4-digit NAICS2002 Code
3-digit NAICS2002 Code
2-digit NAICS2002 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing concordances between NAICS2012 and NAICS2007 classification.
naics2012_naics2007
naics2012_naics2007
A data frame with 1184 rows and 10 variables:
6-digit NAICS2012 Code
5-digit NAICS2012 Code
4-digit NAICS2012 Code
3-digit NAICS2012 Code
2-digit NAICS2012 Code
6-digit NAICS2007 Code
5-digit NAICS2007 Code
4-digit NAICS2007 Code
3-digit NAICS2007 Code
2-digit NAICS2007 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing the description of products under the NAICS 2017 classification.
naics2017_desc
naics2017_desc
A data frame with 2217 rows and 2 variables:
NAICS 2017 Code
NAICS 2017 Description
https://data.bls.gov/cew/apps/bls_naics/v2/bls_naics_app.htm#tab=download&naics=2017
A dataset containing concordances between NAICS2017 and ISIC4 classifications.
naics2017_isic4
naics2017_isic4
A data frame with 1653 rows and 9 variables:
6-digit NAICS2017 Code
5-digit NAICS2017 Code
4-digit NAICS2017 Code
3-digit NAICS2017 Code
2-digit NAICS2017 Code
4-digit ISIC4 Code
3-digit ISIC4 Code
2-digit ISIC4 Code
1-digit ISIC4 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing concordances between NAICS2017 and NAICS2002 classification.
naics2017_naics2002
naics2017_naics2002
A data frame with 1212 rows and 10 variables:
6-digit NAICS2017 Code
5-digit NAICS2017 Code
4-digit NAICS2017 Code
3-digit NAICS2017 Code
2-digit NAICS2017 Code
6-digit NAICS2002 Code
5-digit NAICS2002 Code
4-digit NAICS2002 Code
3-digit NAICS2002 Code
2-digit NAICS2002 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing concordances between NAICS2017 and NAICS2007 classification.
naics2017_naics2007
naics2017_naics2007
A data frame with 1188 rows and 10 variables:
6-digit NAICS2017 Code
5-digit NAICS2017 Code
4-digit NAICS2017 Code
3-digit NAICS2017 Code
2-digit NAICS2017 Code
6-digit NAICS2007 Code
5-digit NAICS2007 Code
4-digit NAICS2007 Code
3-digit NAICS2007 Code
2-digit NAICS2007 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing concordances between NAICS2017 and NAICS2012 classification.
naics2017_naics2012
naics2017_naics2012
A data frame with 1069 rows and 10 variables:
6-digit NAICS2017 Code
5-digit NAICS2017 Code
4-digit NAICS2017 Code
3-digit NAICS2017 Code
2-digit NAICS2017 Code
6-digit NAICS2012 Code
5-digit NAICS2012 Code
4-digit NAICS2012 Code
3-digit NAICS2012 Code
2-digit NAICS2012 Code
https://www.census.gov/eos/www/naics/concordances/concordances.html
A dataset containing import demand elasticities by HS0 3-digit codes from Broda and Weinstein (QJE, 2006) for 73 countries.
sigma_hs0
sigma_hs0
A data frame with 11293 rows and 4 variables:
ISO 3-letter Country Code
3-digit HS0 Code
2-digit HS0 Code
Import Demand Elasticity
http://www.columbia.edu/~dew35/TradeElasticities/TradeElasticities.html
C. Broda and D. Weinstein, "Globalization and the Gains from Variety," Quarterly Journal of Economics, Volume 121, Issue 2 - May 2006.
A dataset containing import demand elasticities for the United States by 5-digit SITC3 codes from Broda and Weinstein (QJE, 2006).
sigma_sitc3
sigma_sitc3
A data frame with 2716 rows and 7 variables:
ISO 3-letter Country Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
Import Demand Elasticity
http://www.columbia.edu/~dew35/TradeElasticities/TradeElasticities.html
C. Broda and D. Weinstein, "Globalization and the Gains from Variety," Quarterly Journal of Economics, Volume 121, Issue 2 - May 2006.
A dataset containing concordances between SITC1 and BEC4 classifications.
sitc1_bec4
sitc1_bec4
A data frame with 1,787 rows and 8 variables:
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the SITC1 classification.
sitc1_desc
sitc1_desc
A data frame with 3024 rows and 2 variables:
SITC1 Code
SITC1 Description
https://comtrade.un.org/data/cache/classificationS1.json
A dataset containing concordances between SITC1 and NAICS (combined) classification via HS (combined).
sitc1_naics
sitc1_naics
A data frame with 3797 rows and 10 variables:
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp; Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between SITC2 and BEC4 classifications.
sitc2_bec4
sitc2_bec4
A data frame with 2,597 rows and 8 variables:
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the SITC2 classification.
sitc2_desc
sitc2_desc
A data frame with 3988 rows and 2 variables:
SITC2 Code
SITC2 Description
https://comtrade.un.org/data/cache/classificationS2.json
A dataset containing concordances between SITC2 and ISIC2 classifications.
sitc2_isic2
sitc2_isic2
A data frame with 1687 rows and 9 variables:
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
4-digit ISIC2 Code
3-digit ISIC2 Code
2-digit ISIC2 Code
1-digit ISIC2 Code
https://wits.worldbank.org/product_concordance.html
A dataset containing concordances between SITC2 and NAICS (combined) classification via HS (combined).
sitc2_naics
sitc2_naics
A data frame with 5065 rows and 10 variables:
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp; Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between SITC2 and Rauch's classification.
sitc2_rauch
sitc2_rauch
A data frame with 1189 rows and 3 variables:
SITC2 Code
Conservative classification
Liberal classification
Data from Jon Haveman's International Trade Data page: http://www.macalester.edu/research/economics/PAGE/HAVEMAN/Trade.Resources/TradeData.html#Rauch
A dataset containing concordances between SITC2 and SITC1 classification.
sitc2_sitc1
sitc2_sitc1
A data frame with 1833 rows and 10 variables:
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between SITC3 and BEC4 classifications.
sitc3_bec4
sitc3_bec4
A data frame with 3,404 rows and 8 variables:
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the SITC3 classification.
sitc3_desc
sitc3_desc
A data frame with 5951 rows and 2 variables:
SITC3 Code
SITC3 Description
https://comtrade.un.org/data/cache/classificationS3.json
A dataset containing concordances between SITC3 and ISIC3 classifications.
sitc3_isic3
sitc3_isic3
A data frame with 3069 rows and 9 variables:
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
A dataset containing concordances between SITC3 and NAICS (combined) classification via HS (combined).
sitc3_naics
sitc3_naics
A data frame with 6024 rows and 10 variables:
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp; Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between SITC3 and SITC1 classification.
sitc3_sitc1
sitc3_sitc1
A data frame with 3118 rows and 10 variables:
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between SITC3 and SITC2 classification.
sitc3_sitc2
sitc3_sitc2
A data frame with 3121 rows and 10 variables:
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between SITC4 and BEC4 classifications.
sitc4_bec4
sitc4_bec4
A data frame with 2,972 rows and 8 variables:
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
3-digit BEC4 Code
2-digit BEC4 Code
1-digit BEC4 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing the description of products under the SITC4 classification.
sitc4_desc
sitc4_desc
A data frame with 7239 rows and 2 variables:
SITC4 Code
SITC4 Description
https://comtrade.un.org/data/cache/classificationS4.json
A dataset containing concordances between SITC4 and NAICS (combined) classification via HS (combined).
sitc4_naics
sitc4_naics
A data frame with 5714 rows and 10 variables:
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
6-digit NAICS Code
5-digit NAICS Code
4-digit NAICS Code
3-digit NAICS Code
2-digit NAICS Code
https://wits.worldbank.org/product_concordance.html; https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp; Pierce and Schott (2009, 2018), https://spinup-000d1a-wp-offload-media.s3.amazonaws.com/faculty/wp-content/uploads/sites/47/2019/06/hssicnaics_20181015.zip
A dataset containing concordances between SITC4 and SITC1 classification.
sitc4_sitc1
sitc4_sitc1
A data frame with 3199 rows and 10 variables:
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
5-digit SITC1 Code
4-digit SITC1 Code
3-digit SITC1 Code
2-digit SITC1 Code
1-digit SITC1 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between SITC4 and SITC2 classification.
sitc4_sitc2
sitc4_sitc2
A data frame with 3271 rows and 10 variables:
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
5-digit SITC2 Code
4-digit SITC2 Code
3-digit SITC2 Code
2-digit SITC2 Code
1-digit SITC2 Code
https://unstats.un.org/unsd/trade/classifications/correspondence-tables.asp
A dataset containing concordances between SITC4 and SITC3 classification.
sitc4_sitc3
sitc4_sitc3
A data frame with 3488 rows and 10 variables:
5-digit SITC4 Code
4-digit SITC4 Code
3-digit SITC4 Code
2-digit SITC4 Code
1-digit SITC4 Code
5-digit SITC3 Code
4-digit SITC3 Code
3-digit SITC3 Code
2-digit SITC3 Code
1-digit SITC3 Code
https://unstats.un.org/unsd/trade/sitcrev4.htm
A dataset containing upstreamness and downstreamness estimates for 41 countries, 35 industries, and 17 years from Antras and Chor (2018).
upstream
upstream
A data frame with 24,395 rows and 7 variables:
Year
ISO 3-letter Country Code
WIOT 2013 Industry Code
Upstreamness (net inventories correction)
Final-use to gross-output (net inventories correction)
Downstreamness (net inventories correction)
Value-added to gross-output (net inventories correction)
Antras, Pol, and Davin Chor. 2018. "On the Measurement of Upstreamness and Downstreamness in Global Value Chains." World Trade Evolution: Growth, Productivity and Employment, 126-194. Taylor & Francis Group.
A dataset containing upstreamness estimates for 426 industries in 2002 and 405 industries in 2007 and 2012 based on Antras and Chor (2012).
upstream_us_detailed
upstream_us_detailed
A data frame with 1,236 rows and 4 variables:
Year
BEA Industry Code
Upstreamness (net inventories correction)
Year of BEA Industry Code
https://scholar.harvard.edu/antras/publications/measuring-upstreamness-production-and-trade-flows
Antras, Pol, and Davin Chor. 2012. "Measuring the Upstreamness of Production and Trade Flows." American Economic Review: Papers and Proceedings, Volume 102, Issue 3: 412-416.
A dataset containing concordances between ISIC3 and WIOT2013 industry codes.
wiod_2013
wiod_2013
A data frame with 585 rows and 6 variables:
4-digit ISIC3 Code
3-digit ISIC3 Code
2-digit ISIC3 Code
1-digit ISIC3 Code
WIOT 2013 Character Code
WIOT 2013 Numeric Code