truncnorm_mom | R Documentation |
Given lower and upper endpoints and the mean and standard deviation of a (non-truncated) normal distribution, compute the first and second moment of the truncated normal distribution. All inputs may be scalars or vectors.
truncnorm_mom(a, b, mu, sig)
a |
lower endpoint |
b |
upper endpoint |
mu |
expected value of the non-truncated normal distribution |
sig |
standard deviation of the non-truncated normal distribution |
a list containing the first moment m1
and the second moment m2
truncnorm_mom(-1, 1, 0, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.