Simple functions for calculating the population-level moments.
The expectation (
E.), variance (
cov.), correlation (
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.
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 acts on
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.