print.sensitivity: Print results of Sensitivity

Description Usage Arguments Value Author(s) Examples

View source: R/print_sensitivity.R

Description

Prints the results of sensitivity of composite index.

Usage

1
2
## S3 method for class 'sensitivity'
print(x)

Arguments

x

output of the function sensitivity

Value

It states the sensitivity: vector of marginal sensitivities and component: vector of component sensitivities.

Author(s)

David Ardia, Kris Boudt, Valentin Todorov and Keshav Pratap

Examples

1
2
3
4
5
6
7
  # load data
  data(cip)
  # compute Composite index (eight-indicators linear) for a range of years
  index_cip = compind(country~., time="year", for.period = 2010, data=cip, ctr=ProcessControl(weights=c("fixed", 1/6, 1/6, 1/12, 1/12, 1/12, 1/12, 1/6, 1/6), aggregation="linear"))
  weights = c(1/6,1/6,0,0,1/6,1/6,0,1/3)
  out = sensitivity(index_cip,weights)
  print(out)

CItools documentation built on May 2, 2019, 4:48 p.m.