Displaying 1 result from an estimated 1 matches for "phq4".
Did you mean:
php4
2012 Jun 28
1
Simple mean trajectory (ordinal variable)
...ant a plot with the means
trajectory of my dependent variable (the individual points do not make a
lot of sense in ordinal data) on each measurement point per group, e.g.
females vs. males.
I found different codes, but they don't work well for me. This one looks
promising, though:
> xyplot(phq4 ~ time, data = data, type = 'l',
> panel=function(...){
> panel.xyplot(...)
> panel.loess(...,fun=mean,horizontal=FALSE,col='red',lwd=3)
> }
> )
Works and gives me the mean trajectory (I think), but also the individual
trajectories (...