search for: smoothx

Displaying 1 result from an estimated 1 matches for "smoothx".

Did you mean: smooth
2003 May 22
1
Plot observed vs. fitted values (weighted nls)
...UE) x<-csdata$time y<-csdata$conc Now, I want a plot of the observed vs. fitted values. I used # 1. 'seq' to generate series of values for x-axis # 2. 'predict' to calculate the fitted values # 3. 'lines' to overlay the smooth curve of the fitted values smoothx<-seq(0,20,0.1) smoothy<-predict(cs.wt,list(x=smoothx)) *Unfortunately, this did not work. My goal was to use plot(x,y) lines(smoothx,smoothy) Got--Error in xy.coords(x, y) : x and y lengths differ-- ANY SUGGESTIONS? PLEASE:-) I noticed that > smoothy<-predict(cs.wt,list(x=smoot...