Skip to content
Prev 12078 / 398502 Next

nls newbie: help approximating Weibull distribution

Hi folks, 

I tried to retain the Weibull distribution using the `nls' function
and proceeding along the lines of the example provided in the
`SSweibull' help (at least I thought so):

	t <- (1:200)/100
	v <- pweibull(t, shape=3, scale=1)
	df <- data.frame(Time=t, Value=v)
	Asym <- 1.0; Drop <- 1.0; lrc <- 0; pwr <- 1
	df.estimate <- nls(Value ~ SSweibull(Time, Asym, Drop, lrc, pwr), data=df)

But this yields the error message "Error in qr.solve(QR.B, cc) :
singular matrix `a' in solve".

Any hints? 

Thanks, Mirko. 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._