This is how the data set looks right now. I want to calculate a new variable mean/avg BP for each patient over the period of followup. Mean bp: (sbp3m + sbp6m +..../n)
But there are missing observations like a lot for some pts. What is the best way to do that?
Please please do reply I am stuck here!!
clear
input long mrn07 int(sbp3m sbp6m)
1558 . .
6394 146 112
22243 . .
30490 130 .
33638 . .
44044 . .
52431 . .
56161 142 .
71354 120 .
82315 . 149
89298 . .
89790 . .
90846 . 179
94139 . .
136683 . 90
141293 . .
143430 142 146
146924 . .
167432 . .
168955 . .
322305 . .
322870 . .
340177 . .
347074 . .
357372 121 .
408326 . .
409279 . .
413870 120 129
426366 . 104
434822 140 136
440228 . 140
444144 . .
449069 118 102
451379 . .
457911 . .
459979 135 114
461106 118 .
490384 148 .
497844 120 136
Comment