Learn R Programming

pastecs (version 1.0-2)

stat.pen: Pennington statistics on a data frame or time series

Description

Compute a table giving various descriptive statistics, including Pennington's estimators of the mean, the variance and the variance of the mean, about the series in a data frame or in a single/multiple time series

Usage

stat.pen(x, basic=FALSE, desc=FALSE)

Arguments

x
a data frame or a time series
basic
do we have to return also basic statistics (by default, it is FALSE)? These are: the number of values (nbr.val), the number of null values (nbr.null), the number of missing values (nbr.na), the minimal value (min), the maximal value (max), the range (rang
desc
do we have to return also various descriptive statistics (by default, it is FALSE)? These are: the median (median), the mean (mean), the standard error on the mean (SE.mean), the confidence interval of the mean (CI.mean) at the p level, the v

Value

  • a data frame with the various statistics in rows and with each column correponding to a variable in the data frame, or to a separate time series

References

Aitchison, J., 1955. On the distribution of a positive random variable having a discrete probability mass at the origin. J. Amer. Stat. Ass., 50:901-908. Pennington, M., 1983. Efficient estimations of abundance for fish and plankton surveys. Biometrics, 39:281-286.

See Also

stat.slide, stat.desc

Examples

Run this code
data(marbio)
stat.pen(marbio[,c(4, 14:16)], basic=TRUE, desc=TRUE)

Run the code above in your browser using DataLab