Re: Initialwert bestimmen für Weibullkurve mit nls2
Verfasst: Di Mär 16, 2021 2:56 pm
Gude!
Bei mir nicht:
Bei mir nicht:
Code: Alles auswählen
> fitdip3
Nonlinear regression model
model: Photo ~ m * exp(-1 * (PDLWP/b)^c)
data: dip3dta
m b c
42.8571 1.9048 0.4857
residual sum-of-squares: 58.18
Number of iterations to convergence: 10648
Achieved convergence tolerance: NA
> finalfitdip3 <- nls(Photo ~ m*exp(-1*(PDLWP/b)^c), data=dip3dta, start=as.list(coef(fitdip3)))
Fehler in numericDeriv(form[[3L]], names(ind), env) :
Fehlender Wert oder etwas Unendliches durch das Modell erzeugt
>
> # Plot in ggplot
> exampledip3<-ggplot(dip3dta, aes(x=PDLWP,y=Photo)) + geom_point(size=2)+
+ theme_classic()+
+ theme(legend.position="none")+
+ theme(axis.text=element_text(size=18),
+ axis.title=element_text(size=17,),axis.title.y=element_text(margin=margin(0,20,0,0)))+
+ stat_smooth(method = "lm", formula = y ~ m*exp(-1*(x/b)^c), size = 0.9, se = FALSE, colour = "black")
>
> exampledip3
Warnmeldung:
Computation failed in `stat_smooth()`:
Objekt 'm' nicht gefunden
>