Displaying 1 result from an estimated 1 matches for "tp23706393p23706393".
2009 May 25
3
long format - find age when another variable is first 'high'
...>=130,1,0)
d
library(plyr)
d2<-ddply(d,~id,transform,plyr.minage=min(age[high.ldlc==1]));
library(doBy)
d2<-transformBy(~id,da=d2,doby.minage=min(age[high.ldlc==1]));
d2
--
View this message in context: http://www.nabble.com/long-format---find-age-when-another-variable-is-first-%27high%27-tp23706393p23706393.html
Sent from the R help mailing list archive at Nabble.com.