dist2 {IRTest} | R Documentation |
Re-parameterized two-component normal mixture distribution
Description
Probability density for the re-parameterized two-component normal mixture distribution.
Usage
dist2(x, prob = 0.5, d = 0, sd_ratio = 1, overallmean = 0, overallsd = 1)
Arguments
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 |
Details
- The overall mean and overall standard deviation obtained from original parameters;
-
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}
Value
The evaluated probability density value(s).
Author(s)
Seewoo Li cu@yonsei.ac.kr
References
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.
Examples
# 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)