[R] using nls for gamma distribution (a,b,d)

2010-04-15 Thread Asif Wazir
t = list(b = 28, a = 1, d= 0.5), trace = TRUE, algorithm="plinear", nls.control(maxiter=500, minFactor=0.01)) error: Missing value or an infinity produced when evaluating the model Can any body tell the problem, where i am doing wrong thanks in advanc .. Muhammad Asif Wazir Ph.D stu

[R] How to derive function for parameters in Self start model in nls

2010-04-12 Thread Asif Wazir
yL$y)) pars <- NLSstAsymptotic(xyL) pars <- coef(nls(y ~ exp(-b2 * b3^x), data = xy, algorithm = "plinear", start = c(b2 = pars[["b1"]], b3 = exp(-exp(pars[["lrc"]]) val <- pars[c(3, 1, 2)] names(val) <- mCall[c("Asym&