search for: snisna

Displaying 1 result from an estimated 1 matches for "snisna".

Did you mean: nina
2010 May 31
1
Creating dropout time from longitudinal data with missing data
Dear R users,   Please assist me with the following problem. I have a dataset that looks like the following:   dat<-data.frame(   'id'=rep(c(1,2,3),each=3),   'time'=rep(c(1,2,3),3),   'y'= c(2,2,NA,2,NA,NA,2,5,7) )   I wish to create a variable for dropout time in dataframe 'dat' such that the dropout time is the time to drop out by the subject as follows: