I work with small sample size data:
>dput(dat.demand2050.unique) c(79, 56, 69, 61, 53, 73, 72, 86, 75, 68, 74.2, 80, 65.6, 60, 54)
for which the density distribution is as follows:

I know that the values ββare taken from two modes - low and high - and if the main process is normal, I used the mixtools package to match the bimodal distribution:
set.seed(99) dat.demand2050.mixmdl <- normalmixEM(dat.demand2050.unique, lambda=c(0.3,0.7), mu=c(60,70), k=2)
which gives me the following result:

(solid lines are curves, and a dashed line is the original density).
Mix Parameters:
>dat.demand2050.mixmdl.prop #mix proportions [1] 0.2783939 0.7216061 >dat.demand2050.mixmdl.means #modal means [1] 56.21150 73.08389 >dat.demand2050.mixmdl.dev #modal std dev [1] 3.098292 6.413906
I have the following questions:
- To create a new set of values ββthat approaches the base distribution, is my approach correct or is there a better workflow?
- If my approach is correct, how can I use this result to generate a set of random values ββfrom this mixed distribution?
source share