| tornado | R Documentation |
Provides statistics for a tornado chart. Evaluates correlations between output and inputs of a ‘mc’ object in the variability dimension.
tornado(
mc,
output = length(mc),
use = "all.obs",
method = c("spearman", "kendall", "pearson"),
lim = c(0.025, 0.975)
)
## S3 method for class 'tornado'
print(x, ...)
mc |
a |
output |
the rank or name of the output to be considered. By default: the last element. |
use |
an optional character string for computing covariances in the presence of missing values: ‘"all.obs"’, ‘"complete.obs"’ or ‘"pairwise.complete.obs"’. |
method |
a character string for the correlation coefficient: ‘"spearman"’ (default), ‘"kendall"’ or ‘"pearson"’. |
lim |
a vector of quantiles used to compute the credible interval. |
x |
a ‘tornado’ object. |
... |
further arguments to be passed to the final print function. |
The tornado function computes Spearman's rho statistic to estimate a rank-based measure of association between one set of random variables of a ‘mc’ object (the output) and the others (the inputs).
‘tornado’ may be applied on a ‘mccut’ object if a ‘tornado’ function was
used in the third block of the evalmccut call.
Type rules for the output node:
‘"V" mcnode’: correlations are only provided for other ‘"V" mcnode’s.
‘"VU" mcnode’: correlations are provided for other ‘"VU"’ and ‘"V"’ nodes.
an invisible object of class ‘tornado’, containing: ‘value’ (correlation coefficients), ‘output’ (name of output), ‘method’, ‘use’.
cor, plot.tornado to draw the results.
data(total)
tornado(total, 2, "complete.obs", "spearman", c(0.025, 0.975))
(y <- tornado(total, 10, "complete.obs", "spearman", c(0.025, 0.975)))
plot(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.