interval_stats {dataSDA} | R Documentation |
Statistics for Interval Data
Description
Functions to compute the mean, variance, covariance, and correlation of interval-valued data.
Usage
int_mean(x, var_name, method = "CM", ...)
int_var(x, var_name, method = "CM", ...)
int_cov(x, var_name1, var_name2, method = "CM", ...)
int_cor(x, var_name1, var_name2, method = "CM", ...)
Arguments
x |
interval-valued data with symbolic_tbl class. |
var_name |
the variable name or the column location (multiple variables are allowed). |
method |
methods to calculate statistics: CM (default), VM, QM, SE, FV, EJD, GQ, SPT. |
... |
additional parameters |
var_name1 |
the variable name or the column location (multiple variables are allowed). |
var_name2 |
the variable name or the column location (multiple variables are allowed). |
Details
...
Value
A numeric value: the mean, variance, covariance, or correlation.
Author(s)
Han-Ming Wu
See Also
int_mean int_var int_cov int_cor
Examples
data(mushroom.int)
int_mean(mushroom.int, var_name = "Pileus.Cap.Width")
int_mean(mushroom.int, var_name = 2:3)
var_name <- c("Stipe.Length", "Stipe.Thickness")
method <- c("CM", "FV", "EJD")
int_mean(mushroom.int, var_name, method)
int_var(mushroom.int, var_name, method)
var_name1 <- "Pileus.Cap.Width"
var_name2 <- c("Stipe.Length", "Stipe.Thickness")
method <- c("CM", "VM", "EJD", "GQ", "SPT")
int_cov(mushroom.int, var_name1, var_name2, method)
int_cor(mushroom.int, var_name1, var_name2, method)
[Package dataSDA version 0.1.2 Index]