I have used nlme fitted on a set of data and would like to
use xyplot to plot the original data and the fitted result.
But I cannot find enough documentation to learn xyplot.
Can some one give me some idea where to look for find that?
I have tried on-line help and MASS3.
mydata.nlme <- nlme( ..... )
I was able to fit a model and found the fitted values
myhat <- fitted(mydata.nlme)
xyplot( resp ~ expl | facA*facB ,
data= mydata,
xlab='Explanatory',
ylab='Response',
panel= function(x,y){
panel.xyplot(x,y)
yhat <- fitted(mydata.nlme)
panel.xyplot(x,yhat$population,type='l')
}
)
This gives me an error on mismatching length of x and y,
althought a plot was generated properly without the last two
lines.
Any suggestion will be appreciated.
Winson Taam
Department of Math. & Stat.
Oakland University
Rochester, MI 48309
tel: 248-370-3438
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|