Displaying 1 result from an estimated 1 matches for "tolpp".
Did you mean:
tlpp
2011 Sep 03
1
Problem with by statement for spaghetti plots
Hi,
I am trying to apply the example at the bottom of the following page to my
own data:
http://128.97.141.26/stat/R/faq/spagplot.htm
http://128.97.141.26/stat/R/faq/spagplot.htm
The code from the example is:
/tolerance<-read.table("http://www.ats.ucla.edu/stat/R/faq/tolpp.csv",sep=",",
header=T)
fit <- by(tolerance, tolerance$id,function(x) fitted.values(lm(tolerance ~
time, data=x)))
fit1 <- unlist(fit)
names(fit1) <- NULL
interaction.plot(tolerance$age, tolerance$id, fit1,xlab="time",
ylab="tolerance", legend=F)/
Here...