Displaying 6 results from an estimated 6 matches for "mixcoeff".
2011 Sep 21
2
problem with function "Truncate" in package "distr"
...why the following mixture of two log-normal
distributions does not get truncated? What puzzles me is that the
function works almost always, but for certain combinations (like the
one below), it does not.
# R code example
library(distr)
mix<-UnivarMixingDistribution(Lnorm(3.2,0.5),Lnorm(5.4,0.6),mixCoeff=c(0.3,0.7))
mix.trunc<-Truncate(mix,lower=0.001,upper=3000)
distr.sample<-r(mix.trunc)(1000000)
range(distr.sample)
Why do I get values over 3000 (which was the defoned upper limit)?
Some help would be greatly appreciated.
Duarte Viana
2017 Aug 26
1
Fwd: Find maxima of a function
...Norm(669.0484, 4.101381),
Norm(677.1753, 4.869985),
Norm(683.2635, 7.288175),
Norm(727.6229, 37.64198),
Norm(819.2011, 57.06655),
mixCoeff=mc0/sum(mc0))
plot(rv, to.draw.arg="d")
I am getting 731.1345 from the code you have provide
It is part of a code, so it was difficult to write a reproducible code
I have tried to use optimr but it gives me the local maxima, now I am
struck with the problem of how to get the global...
2017 Aug 26
0
Find maxima of a function
...am getting using UnivarMixingDistribution from distr package in
> R
>
> code is
>
> mc0= c(0.1241933, 0.6329082 <06329%20082>, 0.2428986 <02428%20986>)
> rv
> <-UnivarMixingDistribution(Norm(506.8644,61.02859),Norm(672.8448,9.149168),Norm(
> 829.902,74.84682), mixCoeff=mc0/sum(mc0))
> plot(rv, to.draw.arg="d")
>
> I want output around 672 in first case and in 2nd case around 2.1
> according to the plot.
> your code will not work in both the scenario
>
> Regards
> Niharika Singhal
>
>
> On Sat, Aug 26, 2017 at 12:47 PM, U...
2017 Aug 24
1
Problem in optimization of Gaussian Mixture model
...heck my data using*
UnivarMixingDistribution* from distr package and according to this the max
should lie somewhere between 600-800
Code I used to check
mc0=c( 0.6329082,0.6329082,0.2428986)
rv
<-UnivarMixingDistribution(Norm(506.8644,61.02859),Norm(672.8448,9.149168),Norm(
829.902,74.84682), mixCoeff=mc0/sum(mc0))
plot(rv, to.draw.arg="d")
Can someone please help how I can solve this problem?
Thanks & Regards
Niharika Singhal
[[alternative HTML version deleted]]
2017 Aug 26
0
Find maxima of a function
...> Norm(677.1753, 4.869985),
>
> Norm(683.2635, 7.288175),
>
> Norm(727.6229, 37.64198),
>
> Norm(819.2011, 57.06655),
>
> mixCoeff=mc0/sum(mc0))
>
> plot(rv, to.draw.arg="d")
>
>
> I am getting 731.1345 from the code you have provide
>
>
> It is part of a code, so it was difficult to write a reproducible code
>
> I have tried to use optimr but it gives me the local maxima, now I am...
2017 Aug 27
2
Fwd: Find maxima of a function
...t; >>
> >> Norm(683.2635, 7.288175),
> >>
> >> Norm(727.6229, 37.64198),
> >>
> >> Norm(819.2011, 57.06655),
> >>
> >> mixCoeff=mc0/sum(mc0))
> >>
> >> plot(rv, to.draw.arg="d")
> >>
> >>
> >> I am getting 731.1345 from the code you have provide
> >>
> >>
> >> It is part of a code, so it was difficult to write a reproducible code
> >>...