datastats {dsdp}R Documentation

Compute the mean and the standard deviation of a data set

Description

Compute the mean and the standard deviation of a data set represented by the pair of the numeric vectors data and optionally its frequency vector freq.

Usage

datastats(data, freq = NULL)

Arguments

data

A numeric vector of a data set.

freq

A frequency vector corresponding to the data vector. The default value is NULL, which means all frequencies are one.

Value

The mean and the standard deviation of a data set.

See Also

histmean()

Examples

## Without a frequency data
datastats(mix2gauss$n200)
## With a frequency data
datastats(mix2gaussHist$n200p, mix2gaussHist$n200f)

[Package dsdp version 0.1.1 Index]