search for: anagnostou

Displaying 1 result from an estimated 1 matches for "anagnostou".

Did you mean: canagnostou
2012 Dec 14
1
Define a custom-built loss function and combine it with nls()
...e measured variables x and y: x<-1:10 y<-c(0.3,0.7,0.9,1.3,2.0,2.4,3.3,3.8,5.0,5.8) d<-data.frame(x,y) Non-linear regression with inbuilt loss-function (sum of squared residuals): nlmodel<-nls(y~a*x^b,data=d,start=list(a=1,b=0.1),trace=T) Many thanks!!! Christiana -- Christiana Anagnostou ***************************************** Department of Evolutionary Ecology and Genetics Zoological Institute Christian-Albrechts-University of Kiel Am Botanischen Garten 9 24118 Kiel Germany Tel: +49-431-8804145 (work) Tel: +49-431-5709649 (home) Fax: +49-431-8802403 Email: canagnostou@zoologie.u...