search for: tree_live_recod

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

Did you mean: tree_live_recode
2012 Apr 13
1
Coding columns for survival analysis
...tree live1 live2 live3 live4 live5 1 tree1 0 0 0 1 1 2 tree2 0 0 1 1 0 3 tree3 0 1 1 0 0 4 tree4 1 1 0 0 0 5 tree5 1 0 0 0 0 I would like to end up with the following: > tree_live_recode live1 live2 live3 live4 live5 1 NA NA NA found alive 2 NA NA found alive mort 3 NA found alive mort 0 4 found alive mort 0 0 5 found mort 0 0 0 I've accomplished the recode in the past, but only by going over the dataset...