Displaying 1 result from an estimated 1 matches for "jhmonoton".
Did you mean:
jhmonotone
2010 Jun 01
0
selecting monotone pattern of missing data from a dataframe with mixed pattern of missingness
...]
}
The function works well when the measurement occassions are just 3. When the measurement occassion becomes 4, I observed that pattern X X X NA is exclude, which is also a monotone pattern. Please how do i adjust a function like this to work in all cases. i.e to select only monotone patterns:
jhmonotone<-data.frame(
'id'=c(8,3,10,4,1),
'time0'=c(2,8,5,8,8),
'time4'=c(2,9,5,8,NA),
'time8'=c(3,8,4,NA,NA),
'time12'=c(2,NA,NA,NA,NA),
'sex'=c('m','m','m','m','m'),
'trt'=c('P','P'...