I need to make nonlinear regression with the posterior script, but how is the problem? I have error in library (nls), package 'nls' has been merged into 'stats'. I need help? What other forms I have to make nonlinear regression? and how I find to calculate statistics y residuals, scatterplot.
thanks SCRIPT ros<-read.table("Dataset.csv",header=T,sep=",") ros attach(ros) # preliminaries options(width=44) options(digits=3) ## Nonlinear Regression par(mfrow=c(1,2)) attach(ros) plot(U1.7km, R, main="(a)") library(nls) mod1<-nls(R ~ beta1*(U1.7km^beta2)+(Hm^beta3)),start=list(beta1=2.031,beta2=0.800,beta3=-0.255), trace = TRUE) summary(mod1) coef(mod1) coef(summary(mod1)) lines(R, fitted.values(mod1), lwd=2) plot(R, residuals(mod1), type="b", main="(b)") abline(h=0, lty=2) -- View this message in context: http://www.nabble.com/problems-with-nls--tp22345292p22345292.html Sent from the R devel mailing list archive at Nabble.com. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel