Learn R Programming

dataSDA (version 0.1.2)

interval_stats: 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", ...)

Value

A numeric value: the mean, variance, covariance, or correlation.

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).

Author

Han-Ming Wu

Details

...

See Also

int_mean int_var int_cov int_cor

Examples

Run this code
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)

Run the code above in your browser using DataLab