Displaying 2 results from an estimated 2 matches for "plotfit1".
Did you mean:
plotfit
2012 Jan 04
1
Is there a way to update a method on an existing Reference Class object?
...rmally work something like this:
cl1 <- setRefClass("cl1",
? fields=list(x="data.frame"),
? methods=list(
? ? init=function(){"Read and process data"},
? ? fitModel=function(){"Fit different kind of models and keep the
results in x and other fields"},
? ? plotFit1=function(){"Plot the fit one way"},
? ? plotFit2=function(){"Plot the fit in another way way"})
)
I would then initialize it and run the functions on it:
cl1Object <- cl1$new()
...
The problem then comes if I need to change something in one of the
methods, because I then ha...
2009 Sep 25
0
Error with Mixdist in R
...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 soon.
Thanking you,
Regards,
Suchit Shah
BOSTON...