I have adjusted the parameters (lambda, mu, sigma) for a mixture of two normals fitted to my data. Now I would like to plot the cdf of this model using the explicit function instead of the ecdf. Is there any way to do this or I do I have to simulate data so then I can use again ecdf?
The explicit function is something like:
ipc_values_EM\$lambda * dnorm(x, ipc_values_EM\$mu, ipc_values_EM\$sigma) + ipc_values_EM\$lambda * dnorm(x, ipc_values_EM\$mu, ipc_values_EM\$sigma)
(as you can note, is the mixture of two normals different mus and different sigmas)