Displaying 2 results from an estimated 2 matches for "mixdat".
Did you mean:
mixdata
2009 Sep 25
0
Error with Mixdist in R
...d the constituent Gaussian distribution curves fitting the data attached in Workbook1.txt here. I tried to use Mixdist on R but ran into following problem. Can you suggest me where I am going wrong?
> super <-read.table("Workbook1.txt",,sep ="\t")
> plot(super)
> fitmixdata <-as.mixdata(super)
> plot(fitmixdata)
> plotfit1<-mix(super,mixparam(c(-75,-67,-38),10),"norm",mixconstr(consigma="NONE"))
Error in nlm(mixlike, lmixdat = mixdat, lmixpar = fitpar, ldist = dist, :
missing value in parameter
I get this error.
Awaiting a reply...
2012 Nov 20
0
double gaussian with mixdist: what's wrong?
...2,8,12,18,24,39,48,64,88,101,132,198,253,331,419,563,781,1134,1423,1842,2505,374,6099,9343,13009,
? ? ? ? ? ? ? ? ? ?15097,13712,9969,6785,4742,3626,3794,4737,5494,5656,4806,3474,2165,1290,799,431,213,137,66,57,41,35,27,27,27)
? data.df <- data.frame(time=time, counts=counts)
? data.mix <- as.mixdata(data.df)
? plot(data.mix)
? startparam <- mixparam(c(699,707),1
? data.fit <-?mix(data.mix, startparam, "norm")
--- end code ---
This results in:
? Error in nlm(mixlike, lmixdat = mixdat, lmixpar = fitpar, ldist = dist, ?:?
? ? missing value in parameter
I have used this fit me...