vs.ki: Vertical Specialization

Description Usage Arguments Details Value Author(s) References Examples

View source: R/vs.ki.R

Description

VS is the imported input content of exports for country k in sector i. The Vertical specialization chain is VS_ki=(imported intermediates/gross output)*exports. The first term is the share of imported inputs into gross production. Multiplying this ratio by the amount that is exported provides the monetary value for the imported input content of exports.

Usage

1
vs.ki(imp,exp,out,namesector, write.xlsx=TRUE, name="Level_Verticalization.xlsx")

Arguments

imp

Vector. Imported intermediates of sector i

exp

Vector. Exports

out

Vector. Gross Output

namesector

String. Name of Sector i

write.xlsx

Logical. if TRUE results are presented in an excel file

name

String. name of the excel file

Details

The dimension of the four arguments must coincide.

Value

Returns a data frame

Author(s)

Ignacio Sarmiento-Barbieri

References

Hummels, David & Ishii, Jun & Yi, Kei-Mu, 2001. The nature and growth of vertical specialization in world trade. Journal of International Economics, Elsevier, vol. 54(1), pages 75-96, June.

Examples

1
2
3
4
5
6
y<-mat_40x40$DT.a.PB[1:40]
x<-mat_40x40$X[1:40]
m<-mat_40x40[42,2:41]


vs<-vs.ki(m,x,y, write.xlsx=FALSE)

ignaciomsarmiento/ioanalysis documentation built on May 21, 2019, 9:52 a.m.