Hello: I am trying to use optim() to estimate the maximum likelihood of a function a*x^b = y. Unfortunately, I always get the error, that there is no default value for b.
Could you give me an example, on how to correctly optimize this function with input data x<-c(1,3,11,14). Thanks a lot, Adrienne -- *********************************************************************** Adrienne Grêt-Regamey LEP, Landscape and Environmental Planning, HIL H 31.2, ETH Hönggerberg CH - 8093 Zürich Phone: +41/1/633'30'02 or +41/31/971'53'74 Fax: +41/1/633'10'84 http://lep.ethz.ch/ ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html