popmoments: Population-level moments

Description Details


Simple functions for calculating the population-level moments.


The expectation (E.), variance (var.), covariance (cov.), correlation (cor.), and regression (reg.) operators are provided. Note that each function ends in a . to distinguish them from other standard functions with similar names. Convenience functions for other quantities are also provided (e.g. skew., coskew., cm., int., z.). All of these functions act on vectors without regard to dimension information or any other attributes (including S3 class information). Two functions are special in that they do not act on vectors: Edist and cm.. Edist acts on d-functions (e.g. dnorm), to give (or approximate) the expected value of a (univariate) distribution. cm. acts on data frames to give the mixed central moment of the columns of a data frame.

popmoments documentation built on May 2, 2019, 5 p.m.