Re: [R] Self-starting nonlinear power law function

2015-09-29 Thread tiago
Hi Christoph! Actually I had this doubt and thanks for the help! Although i have kind of a problem: while you just have one variable (x) i have three and respective interactions (let's say x1, x2 and x3 where x2 and x3 are categorical variables) the self-construct is still applicable? Best regar

Re: [R] Self-starting nonlinear power law function

2013-12-04 Thread Scherber, Christoph
Dear all, I have just written the self-starting power law function myself. Here it is: ## # Self-starting power law function written by C. Scherber powermodel=function(x,a,b,c) {a+b*x^c} powermodelInit=function(mCall,LHS,data){ xy=sortedXyData(mCall[["x"]],LHS,data) lmFit1=lm(xy[,"y"]~1) #for "

[R] Self-starting nonlinear power law function

2013-12-04 Thread Scherber, Christoph
Dear all, Has anyone written a self-starting power law function of the form mypower=function(x,a,b,c){a+b*x^c} ? Or is there a nonlinear regression package containing more selfStart() functions than nlme? Thank you very much for your help! Best wishes Christoph [running R 3.0.1 on Windows 7