dist2 | R Documentation |
Probability density for the re-parameterized two-component normal mixture distribution.
dist2(x, prob = 0.5, d = 0, sd_ratio = 1, overallmean = 0, overallsd = 1)
x |
A numeric vector. The location to evaluate the density function. |
prob |
A numeric value of |
d |
A numeric value of |
sd_ratio |
A numeric value of |
overallmean |
A numeric value of |
overallsd |
A numeric value of |
1) Overall mean (\bar{\mu}
)
\bar{\mu}=\pi\mu_1 + (1-\pi)\mu_2
2) Overall standard deviation (\bar{\sigma}
)
\bar{\sigma}=\sqrt{\pi\sigma_{1}^{2}+(1-\pi)\sigma_{2}^{2}+\pi(1-\pi)(\mu_2-\mu_1)^2}
The evaluated probability density value(s).
Seewoo Li cu@yonsei.ac.kr
Li, S. (2021). Using a two-component normal mixture distribution as a latent distribution in estimating parameters of item response models. Journal of Educational Evaluation, 34(4), 759-789.
# Evaluated density
dnst <- dist2(seq(-6,6,.1), prob = 0.3, d = 1, sd_ratio=0.5)
# Plot of the density
plot(seq(-6,6,.1), dnst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.