A numeric vector. The location to evaluate the density function.
prob
A numeric value of π=Nn1 parameter of two-component Gaussian mixture distribution, where n1 is the estimated number of examinees belonging to the first Gaussian component and N is the total number of examinees (Li, 2021).
d
A numeric value of δ=σˉμ2−μ1 parameter of two-component Gaussian mixture distribution,
where μ1 and μ2 are the estimated mean of the first and second Gaussian component, respectively.
And σˉ is the overall standard deviation of the latent distribution (Li, 2021).
Without loss of generality, μ2≥μ1 is assumed, thus δ≥0.
sd_ratio
A numeric value of ζ=σ1σ2 parameter of two-component Gaussian mixture distribution, where σ1 and σ2 are the estimated standard deviation of the first and second Gaussian component, respectively (Li, 2021).
overallmean
A numeric value of μˉ that determines the overall mean of two-component Gaussian mixture distribution.
overallsd
A numeric value of σˉ that determines the overall standard deviation of two-component Gaussian mixture distribution.
Details
The overall mean and overall standard deviation obtained from original parameters;
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)