Description Usage Arguments Value Author(s) Examples
View source: R/print_sensitivity.R
Prints the results of sensitivity
of composite index.
1 2 | ## S3 method for class 'sensitivity'
print(x)
|
x |
output of the function |
It states the sensitivity: vector of marginal sensitivities and component: vector of component sensitivities.
David Ardia, Kris Boudt, Valentin Todorov and Keshav Pratap
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.