Re: [R] Plot fitted vs observed values

2009-11-28 Thread Duncan Murdoch
On 28/11/2009 9:25 AM, oscar linares wrote: Dear Wiza[R]ds, # I have the following experimentally observed data: csdata <- data.frame( time=c(0,1,3,9,20), conc=c(638.697,395.69,199.00,141.58,112.16) ) # weighting resp means response wt.MM<- function(resp, time,A1,a1,A2,a2) { pred <- A1*exp

[R] Plot fitted vs observed values

2009-11-28 Thread oscar linares
Dear Wiza[R]ds, # I have the following experimentally observed data: csdata <- data.frame( time=c(0,1,3,9,20), conc=c(638.697,395.69,199.00,141.58,112.16) ) # weighting resp means response wt.MM<- function(resp, time,A1,a1,A2,a2) { pred <- A1*exp(-a1*time)+A2*exp(-a2*time) (resp - pred)