Description Usage Arguments Value Note Examples
Expectation
1 |
... |
What to compute the expectation of |
weights |
The name of the column containing sample weights. Set to NULL for no weighting. |
keep_df |
If TRUE, the resulting data frame is returned (which will contain additional columns for conditioned variables). |
A numeric vector containing the computed expectation.
Assumes a data frame named "dat" is defined in the global environment. This will be modified in future versions.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.