search for: dogy

Displaying 2 results from an estimated 2 matches for "dogy".

Did you mean: dog
2006 Sep 28
1
Nonlinear fitting - reparametrization help
...for this problem ? I have appended some R code with sample data to fit. Thank you !!! Suresh; please cc ssk2031 at columbia.edu if possible. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x=seq(-10,10,length=1000) a0=0; ae=1; me=0; se=1; ai=0.5; mi=0; si=3; dogy <- function(x,a0,ae,me,se,ai,mi,si){ y=a0+ae*exp(-0.5*(((x-me)/se)^2))-ai*exp(-0.5*(((x-mi)/si)^2)) y} y=dogy(x,a0,ae,me,se,ai,mi,si) erval=rnorm(length(y),sd=0.02) y=y+erval #plot(x,y+erval) #fit=nls(y~ae*exp((x/se)^2)-ai*exp((x/si)^2),start=c(ae=.8,se=1.1,ai=.2,si=1),trace=TRUE) #here I t...
2011 Jan 26
1
Making up a graph and its equation which better fits two groups of data
Dear R-folks: I have a group of data ('x' and 'y' axis), but I'd like to know how to draw a graph which would fits my data in a better way, I also need its equation. Could you give me any R-rutine ideas?. I thank you in advance for your kind support. [[alternative HTML version deleted]]