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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.