Title: | Compute Chinese Capital Stocks |
---|---|
Description: | Compute Chinese capital stocks in provinces level, based on Zhang (2008) <DOI:10.1080/14765280802028302>. |
Authors: | Pu Chen [aut, cre] |
Maintainer: | Pu Chen <[email protected]> |
License: | GPL-2 |
Version: | 0.1.1 |
Built: | 2025-02-09 02:58:48 UTC |
Source: | https://github.com/common2016/capitalstock |
A dataset containing investment, the indices of investment and the price indices of investment
asset
asset
An object of class data.frame
with 2157 rows and 6 columns.
@format A data frame:
provinces
year
total fixed capital formation
index of fixed capital formation
price index of investment in fixed assets
depreciation
This function compute capital stock of provinces in China using the method by Zhang (2008) or Chen (2020).
CompK( prv, method = "ZJ", startyr = 1996, yr = NULL, invest = NULL, InvestPrice = NULL, depr = NULL, delta = 0.096, bt = 1952 )
CompK( prv, method = "ZJ", startyr = 1996, yr = NULL, invest = NULL, InvestPrice = NULL, depr = NULL, delta = 0.096, bt = 1952 )
prv |
a province name, a scalar character. It's Chinese phonetic alphabets. |
method |
a string. |
startyr |
a numeric scalar. When use the method by Chen (2020), |
yr |
a numeric vector about years. If you only need capital stock before 2022,
you can use its default |
invest |
a numeric vector about investment, its length equal the length of
|
InvestPrice |
a numeric vector about price indices of investment,
its length equal the length of |
depr |
a numeric vector about depreciation,its length equal the length of |
delta |
a rate of depreciation, a scalar number. |
bt |
a scalar number, such as 2000. It means computing capital stock with its price equal
1 in |
The function return a data.frame, and its 1st column is province, 2nd column is year, 3rd column is capital stock, 4th column is the price index of investment.
The parameter InvestPrice
is a fixed base index with equaling 1 in 1952 by default.
However, we often only get a price indices of investment with equaling 1
in last year. You can use data(asset)
to get InvestPrice
in any year (before 2017) with equaling 1 in 1952. So, it is easy then.
Zhang, J., Estimation of China's provincial capital stock (1952-2004) with applications. Journal of Chinese Economic and Business Studies, 2008. 6(2): p. 177-196.
# Compute capital stock in Xinjiang province in 1952-2017 CompK(prv = 'xinjiang') # Compute capital stock in Xinjiang province in 1952-2017 with its price equaling 1 in 2000 CompK(prv = 'xinjiang', bt = 2000) # compute capital stock in Beijing in 2023 and 2024 CompK(yr = 2023:2024, invest = c(10801.2,11100), InvestPrice = c(1.86*1.03,1.86*1.03*1.021), prv = 'beijing',delta = 0.096) # ... # beijing 2023 42043.06533 1.9158000 # beijing 2024 43681.68543 1.9560318 # Compute capital stock in chongqing with its price equaling 1 in 1992 based on # Chen and Wan (2020) CompK(prv = 'chongqing', method = 'CP', startyr = 1996, bt = 1992)
# Compute capital stock in Xinjiang province in 1952-2017 CompK(prv = 'xinjiang') # Compute capital stock in Xinjiang province in 1952-2017 with its price equaling 1 in 2000 CompK(prv = 'xinjiang', bt = 2000) # compute capital stock in Beijing in 2023 and 2024 CompK(yr = 2023:2024, invest = c(10801.2,11100), InvestPrice = c(1.86*1.03,1.86*1.03*1.021), prv = 'beijing',delta = 0.096) # ... # beijing 2023 42043.06533 1.9158000 # beijing 2024 43681.68543 1.9560318 # Compute capital stock in chongqing with its price equaling 1 in 1992 based on # Chen and Wan (2020) CompK(prv = 'chongqing', method = 'CP', startyr = 1996, bt = 1992)
This function compute capital stock of provinces in China using the method by Chen (2020).
CompK_CP( prv, startyr = 1993, yr = NULL, invest = NULL, InvestPrice = NULL, depr = NULL, delta = 0.096, bt = 1992 )
CompK_CP( prv, startyr = 1993, yr = NULL, invest = NULL, InvestPrice = NULL, depr = NULL, delta = 0.096, bt = 1992 )
prv |
a province name, a scalar character. It's Chinese phonetic alphabets. |
startyr |
a numeric scalar. When use the method by Chen (2020), |
yr |
a numeric vector about years. If you only need capital stock before 2017,
you can use its default |
invest |
a numeric vector about investment, its length equal the length of
|
InvestPrice |
a numeric vector about price indices of investment,
its length equal the length of |
depr |
a numeric vector about depreciation,its length equal the length of |
delta |
a rate of depreciation, a scalar number. |
bt |
a scalar number, such as 2000. It means computing capital stock with its price equal
1 in |
The function return a data.frame, and its 1st column is province, 2nd column is year, 3rd column is capital stock, 4th column is the price index of investment.
The parameter InvestPrice
is a fixed base index with equaling 1 in 1952 by default.
However, we often only get a price indices of investment with equaling 1
in last year. You can use data(asset)
to get InvestPrice
in any year (before 2017) with equaling 1 in 1952. So, it is easy then.
Chen, Pu, 2020, Compute capital stocks of provinces in China (In Chinese).
This function compute capital stock of provinces in China using the method by Zhang (2008).
CompK_ZJ( yr = NULL, invest = NULL, InvestPrice = NULL, delta = 0.096, prv, bt = 1952 )
CompK_ZJ( yr = NULL, invest = NULL, InvestPrice = NULL, delta = 0.096, prv, bt = 1952 )
yr |
a numeric vector about years. If you only need capital stock before 2017,
you can use its default |
invest |
a numeric vector about investment, its length equal the length of
|
InvestPrice |
a numeric vector about price indices of investment,
its length equal the length of |
delta |
a rate of depreciation, a scalar number. |
prv |
a province name, a scalar character. It's Chinese phonetic alphabets. |
bt |
a scalar number, such as 2000. It means computing capital stock with its price equal
1 in |
The function return a data.frame, and its 1st column is province, 2nd column is year, 3rd column is capital stock, 4th column is the price index of investment.
The parameter InvestPrice
is a fixed base index with equaling 1 in 1952 by default.
However, we often only get a price indices of investment with equaling 1
in last year. You can use data(asset)
to get InvestPrice
in any year (before 2017) with equaling 1 in 1952. So, it is easy then.
Zhang, J., Estimation of China's provincial capital stock (1952-2004) with applications. Journal of Chinese Economic and Business Studies, 2008. 6(2): p. 177-196.