Description Usage Arguments Value Author(s) Examples
This function calculates the growth from two input numeric vectors
1 2 3 |
val1 |
First numeric vector (e.g. employment at time t) |
val2 |
Second numeric vector (e.g. employment at time t) or data frame for times t+1, t+2, t+3, ..., t+n |
growth.type |
Type of growth value that has to be calculated (absolute values or growth rate) |
output |
Type of output in the case of several years: growth rate (default: |
rate.perc |
Logical argument that indicates whether growth rates are expressed in percent or not |
log.rate |
Logical argument that indicates whether growth rates are logged or not |
factor.mean |
If growth factors are returned: arithmetic mean ( |
time.periods |
No. of regarded time periods (for average growth rates) |
A numeric vector containing the growth rates in the same order as stated
Thomas Wieland
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Example from Farhauer/Kroell (2013):
region_A_t <- c(90,20,10,60)
region_A_t1 <- c(100,40,10,55)
# data for region A (time t and t+1)
nation_X_t <- c(400,150,150,400)
nation_X_t1 <- c(440,210,135,480)
# data for the national economy (time t and t+1)
growth(region_A_t, region_A_t1)
data(Freiburg)
# Loads the data
growth(Freiburg$e_Freiburg2008, Freiburg$e_Freiburg2014, growth.type = "rate")
# Industry-specific growth rates for Freiburg 2008 to 2014
|
[1] 1.1111111 2.0000000 1.0000000 0.9166667
[1] -0.067902184 0.076083248 0.133025076 0.065511881 0.003272835
[6] 0.189887640 0.191918380 0.249519763 0.099522162
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.