加載下面有套餐: R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[
我有血壓記錄的縱向跟蹤。 某個點的值比移動平均值(滾動平均值)的預測性要低,這就是我爲什麼要計算它的原因。數據看起來像 test <- read.table(header=TRUE, text = "
ID AGE YEAR_VISIT BLOOD_PRESSURE TREATMENT
1 20 2000 NA 3
1 21 2001 129 2
1 22