Displaying 2 results from an estimated 2 matches for "nlmod2".
Did you mean:
nlmod
2008 Aug 11
3
Peoblem with nls and try
...h thata tools
setwd("C:/dati")
a<-read.table("Normalizzazione.csv", sep=",", dec=".", header=F)
for (i in 1:dim(a[[2]]]) {
#preparazione dati da analizzare singolarmente
P1<-data.frame(Time=a[,2],RFU=a[,i+2])
P1<-data.frame(Time=a[,1],RFU=a[,2])
nlmod2 <- nls(RFU ~ A + (B+c*Time)/(1+exp(k*(e-Time))),
P1, start = list(A = 100, c = 1, B = 10, k =2, e = 10),control = nls.control(maxiter = 100000),trace = TRUE)
print (summary(nlmod2))
coeff<-coefficients(nlmod2)
c<-coeff["c"]
A<-coeff["A"]
B<-coeff["B...
2010 Apr 19
3
nls for piecewise linear regression not converging to least square
Hi R experts,
I'm trying to use nls() for a piecewise linear regression with the first
slope constrained to 0. There are 10 data points and when it does converge
the second slope is almost always over estimated for some reason. I have
many sets of these 10-point datasets that I need to do. The following
segment of code is an example, and sorry for the overly precise numbers,
they are just