These function compute the expected value and variance of a truncated random variable with the given specification over the truncated domain using numerical integration.
1 |
spec |
A character vector for the name of the distribution (e.g., "norm") |
a |
The minimum value allowed in the distribution (inclusive). |
b |
The maximum value allowed in the distribution (inclusive). |
params |
A list of distribution parameter name/value pairs |
... |
Distribution parameter arguments. Only used if 'params' is NULL. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.