demographic

##             Variable                Summary
## 1                age       66.6 + 12.5 (22)
## 2           gender_0         16/22 (72.7 %)
## 3           gender_1          6/22 (27.3 %)
## 4             race_3          3/22 (13.6 %)
## 5             race_4         18/22 (81.8 %)
## 6             race_6           1/22 (4.5 %)
## 7        ethnicity_0         19/22 (86.4 %)
## 8        ethnicity_1          3/22 (13.6 %)
## 9                bmi        27.6 + 5.6 (22)
## 10  dialysis_vintage     889.8 + 920.5 (10)
## 11          access_0           1/21 (4.8 %)
## 12          access_1           2/21 (9.5 %)
## 13          access_2         10/21 (47.6 %)
## 14          access_3            4/21 (19 %)
## 15          access_4           2/21 (9.5 %)
## 16          access_6           2/21 (9.5 %)
## 17             cad_0         12/22 (54.5 %)
## 18             cad_1         10/22 (45.5 %)
## 19              dm_0          9/22 (40.9 %)
## 20              dm_1         13/22 (59.1 %)
## 21             chf_0         14/22 (63.6 %)
## 22             chf_1          8/22 (36.4 %)
## 23             htn_0           2/22 (9.1 %)
## 24             htn_1         20/22 (90.9 %)
## 25             pvd_0         20/22 (90.9 %)
## 26             pvd_1           2/22 (9.1 %)
## 27            na_pre       135.5 + 4.7 (22)
## 28           osm_pre      294.9 + 10.6 (22)
## 29           bnp_pre 16248.1 + 19394.8 (22)
## 30         Final.Leg        203.1 + 47 (22)
## 31 Net.Fluid.Balance     1670 + 1220.9 (22)
## 32           dti.sum         5.5 + 3.4 (22)
## 33           tds.sum         6.7 + 4.9 (22)
## 34  thirst_intensity           4 + 2.8 (22)
## 35           race2_4         18/22 (81.8 %)
## 36       race2_other          4/22 (18.2 %)
## 37         access2_2         10/21 (47.6 %)
## 38     access2_other         11/21 (52.4 %)

log transform bnp

hist(dat1$bnp_pre)

dat1$bnp_pre_ln <- log(dat1$bnp_pre)
hist(dat1$bnp_pre_ln)

pairwise correlation

##                        na_pre     osm_pre  bnp_pre_ln Net.Fluid.Balance
## na_pre             1.00000000  0.64726445  0.26841922       -0.17986665
## osm_pre            0.64726445  1.00000000  0.03796424       -0.15946305
## bnp_pre_ln         0.26841922  0.03796424  1.00000000        0.02508619
## Net.Fluid.Balance -0.17986665 -0.15946305  0.02508619        1.00000000
## dti.sum           -0.10646940 -0.06667083 -0.11639216        0.15650436
## tds.sum           -0.05922523 -0.14388113  0.09407941        0.30318871
## thirst_intensity   0.33373445  0.31169513  0.12418871       -0.19749744
##                       dti.sum     tds.sum thirst_intensity
## na_pre            -0.10646940 -0.05922523        0.3337344
## osm_pre           -0.06667083 -0.14388113        0.3116951
## bnp_pre_ln        -0.11639216  0.09407941        0.1241887
## Net.Fluid.Balance  0.15650436  0.30318871       -0.1974974
## dti.sum            1.00000000  0.61123892        0.3316686
## tds.sum            0.61123892  1.00000000        0.3331333
## thirst_intensity   0.33166857  0.33313331        1.0000000

subset based on na_pre > 135

##                        na_pre     osm_pre bnp_pre_ln Net.Fluid.Balance
## na_pre             1.00000000 -0.03225874 -0.1646251       -0.04039901
## osm_pre           -0.03225874  1.00000000 -0.2335386        0.35571393
## bnp_pre_ln        -0.16462512 -0.23353859  1.0000000        0.23836280
## Net.Fluid.Balance -0.04039901  0.35571393  0.2383628        1.00000000
## dti.sum           -0.10836720 -0.06711915  0.1758212       -0.11820404
## tds.sum           -0.07722676 -0.47468755  0.4425352        0.28680342
## thirst_intensity   0.24408765 -0.09079017  0.3545381        0.03418803
##                       dti.sum     tds.sum thirst_intensity
## na_pre            -0.10836720 -0.07722676       0.24408765
## osm_pre           -0.06711915 -0.47468755      -0.09079017
## bnp_pre_ln         0.17582125  0.44253519       0.35453813
## Net.Fluid.Balance -0.11820404  0.28680342       0.03418803
## dti.sum            1.00000000  0.16498586       0.55547302
## tds.sum            0.16498586  1.00000000       0.44444084
## thirst_intensity   0.55547302  0.44444084       1.00000000

subset based on na_pre <= 135

##                       na_pre    osm_pre  bnp_pre_ln Net.Fluid.Balance
## na_pre            1.00000000  0.6256646  0.25194958        0.05376072
## osm_pre           0.62566457  1.0000000 -0.24220463       -0.28020187
## bnp_pre_ln        0.25194958 -0.2422046  1.00000000       -0.05270152
## Net.Fluid.Balance 0.05376072 -0.2802019 -0.05270152        1.00000000
## dti.sum           0.16065854  0.1612607 -0.51380874        0.26781296
## tds.sum           0.03839469  0.1225325 -0.49007405        0.29475808
## thirst_intensity  0.51626194  0.5969151 -0.26382744       -0.35797507
##                      dti.sum     tds.sum thirst_intensity
## na_pre             0.1606585  0.03839469        0.5162619
## osm_pre            0.1612607  0.12253246        0.5969151
## bnp_pre_ln        -0.5138087 -0.49007405       -0.2638274
## Net.Fluid.Balance  0.2678130  0.29475808       -0.3579751
## dti.sum            1.0000000  0.92061174        0.2263314
## tds.sum            0.9206117  1.00000000        0.2730011
## thirst_intensity   0.2263314  0.27300112        1.0000000

subset based on Net.Fluid.Balance > 2

##                       na_pre     osm_pre  bnp_pre_ln Net.Fluid.Balance
## na_pre             1.0000000  0.65579679  0.23477759        -0.1508675
## osm_pre            0.6557968  1.00000000  0.04151360        -0.1917523
## bnp_pre_ln         0.2347776  0.04151360  1.00000000         0.2054024
## Net.Fluid.Balance -0.1508675 -0.19175233  0.20540245         1.0000000
## dti.sum           -0.1275942 -0.06927485 -0.14832140         0.1850619
## tds.sum           -0.0829670 -0.15238490  0.09000733         0.3120349
## thirst_intensity   0.3332439  0.32010509  0.08960745        -0.1295863
##                       dti.sum     tds.sum thirst_intensity
## na_pre            -0.12759417 -0.08296700       0.33324389
## osm_pre           -0.06927485 -0.15238490       0.32010509
## bnp_pre_ln        -0.14832140  0.09000733       0.08960745
## Net.Fluid.Balance  0.18506192  0.31203490      -0.12958625
## dti.sum            1.00000000  0.60388210       0.34747705
## tds.sum            0.60388210  1.00000000       0.37592683
## thirst_intensity   0.34747705  0.37592683       1.00000000