Short answer: yes.
#for a) in R plot your boxplots and then type:
cat=1:5
lines(cat,tapply(y,x,median,na.rm=T))
#or use a fit model
abline(lm(tapply(y,x,median,na.rm=T)~cat))
#for B) see ?quantile, from the top of my head it should be something like this
percen=0.25
lines(cat,tapply(y,x,quantile, prob=percen))
percen=0.75
lines(cat,tapply(y,x,quantile, prob=percen))






Reply With Quote
