Skip to content
Prev 86208 / 398502 Next

mixture normal distributions

Dear R helper,

I mange to transform uniform sequences to mixture
normal distributions using the following cods:
w = c(0.25,0.75), name = NULL, long.name = FALSE)
But somtimes if i use ,e.g, 23 or 11 instead of 29 it
will give me the following error.
w = c(0.25,0.75), name = NULL, long.name = FALSE)
Error in uniroot(function(l) pnorMix(obj, l) - pp[i],
interval = rq) : 
        f() values at end points not of opposite sign


I am seeking help how to avoid this error.

Many thanks for your help in advance.

My E-mail is aleid2001 at yahoo.com

Al-Eid

The university of Manchester.