我愿用一个专用栏目的数值填写缺失的浏览值。
现有表格:(Measure_Table)
sID | Visit | value_1 | value_2 | value_3 | value_Score | whyMissing |
---|---|---|---|---|---|---|
1 | 1 | 3 | 2 | 5 | 12 | |
1 | 2 | 1 | 2 | 5 | 12 | |
1 | 3 | 6 | 2 | 5 | 12 | |
2 | 1 | 8 | 2 | 5 | 12 | |
2 | 2 | -30 | ||||
2 | 3 | -10 | ||||
3 | 1 | 2 | 2 | 1 | 12 | |
3 | 2 | 7 | 8 | 9 | 12 | |
3 | 3 | -10 |
I have been trying to use this syntax, but when I do, it runs but the values from whyMissing do not populate into the other columns. It is important to me to do this with multiple columns because my dataset is larger than what I have shown here.
希望结果表:Outcome_Measure_Table
sID | Visit | value_1 | value_2 | value_3 | value_Score | whyMissing |
---|---|---|---|---|---|---|
1 | 1 | 3 | 2 | 5 | 12 | |
1 | 2 | 1 | 2 | 5 | 12 | |
1 | 3 | 6 | 2 | 5 | 12 | |
2 | 1 | 8 | 2 | 5 | 12 | |
2 | 2 | -30 | -30 | -30 | -30 | -30 |
2 | 3 | -10 | -10 | -10 | -10 | -10 |
3 | 1 | 2 | 2 | 1 | 12 | |
3 | 2 | 7 | 8 | 9 | 12 | |
3 | 3 | -10 | -10 | -10 | -10 | -10 |
这是能够运行的辛迪加,但在我向间谍出口时,它不会分散价值。 如果说是真的,我就只用填满! 我愿意接受其他使用间谍的做法! 如果我能够利用接口和过去yn子来这样做,那么 later也就能够使用。
我的多变观点认为,这些缺失的价值观中有一些是 lo—— 0. 这样做的方式和方式如何绕过?
DO REPEAT vr=value_1 TO value_Score.
IF NOT MISSING(whyMissing) vr=whyMissing.
END REPEAT.