Learn R Programming

dataSDA (version 0.1.2)

histogram_stats: Statistics for Histogram Data

Description

Functions to compute the mean, variance, covariance, and correlation of histogram-valued data.

Usage

hist_mean(x, var_name, method = "BG", ...)

hist_var(x, var_name, method = "BG", ...)

hist_cov(x, var_name1, var_name2, method = "BG")

hist_cor(x, var_name1, var_name2, method = "BG")

Value

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

Arguments

x

histogram-valued data object.

var_name

the variable name or the column location.

method

methods to calculate statistics: mean and var: BG (default), L2W; cov and cor: BG (default), BD, B, L2W.

...

additional parameters.

var_name1

the variable name or the column location.

var_name2

the variable name or the column location.

Author

Po-Wei Chen, Han-Ming Wu

Details

...

See Also

int_mean int_var int_cov int_cor

Examples

Run this code
library(HistDAWass)

Run the code above in your browser using DataLab