Create a dataset with the latest time point only
get.latest.time.Rd
Takes the latest time point from each arm in each study within an
mb.network
object. Useful for network plots.
Value
A list containing:
a data frame in long format of responses at the latest time point in each arm of each study
a vector of studyIDs
a vector of treatment names
a vector of class names (if included in
network
)a data frame of treatment -> class codings (if included in
network
)
Examples
# Using the alogliptin dataset
network <- mb.network(alog_pcfb)
#> Reference treatment is `placebo`
#> Studies reporting change from baseline automatically identified from the data
# Generate a data frame with only the latest time point included in each study
get.latest.time(network)
#> $data.ab
#> studyID time treatment narm arm y se n clinicaltrialGov_ID
#> 1 1 12 1 5 1 0.06 0.05311623 75 NCT01263470
#> 2 1 12 2 5 2 -0.51 0.07650598 79 NCT01263470
#> 3 1 12 3 5 3 -0.70 0.06219210 84 NCT01263470
#> 4 1 12 4 5 4 -0.76 0.06187984 79 NCT01263470
#> 5 1 12 5 5 5 -0.82 0.05287913 79 NCT01263470
#> 6 2 26 1 3 1 -0.02 0.09400000 63 NCT00286455
#> 7 2 26 3 3 2 -0.56 0.06500000 131 NCT00286455
#> 8 2 26 4 3 3 -0.59 0.06600000 128 NCT00286455
#> 9 3 40 2 4 1 -0.33 0.07622222 81 NCT01263496
#> 10 3 40 3 4 2 -0.48 0.09923275 79 NCT01263496
#> 11 3 40 4 4 3 -0.66 0.07808110 79 NCT01263496
#> 12 3 40 5 4 4 -0.77 0.08346834 84 NCT01263496
#> 13 4 26 1 3 1 -0.19 0.08100000 95 NCT00286494
#> 14 4 26 3 3 2 -0.66 0.05600000 196 NCT00286494
#> 15 4 26 4 3 3 -0.80 0.05600000 195 NCT00286494
#> 16 5 26 1 3 1 0.01 0.08400000 97 NCT00286468
#> 17 5 26 3 3 2 -0.38 0.05800000 201 NCT00286468
#> 18 5 26 4 3 3 -0.52 0.05800000 197 NCT00286468
#> 19 6 26 1 3 1 -0.10 0.07600000 103 NCT00286442
#> 20 6 26 3 3 2 -0.61 0.05300000 210 NCT00286442
#> 21 6 26 4 3 3 -0.59 0.05400000 203 NCT00286442
#> 22 7 12 1 3 1 -0.19 0.05128776 115 NCT01318070
#> 23 7 12 3 3 2 -0.91 0.04176295 111 NCT01318070
#> 24 7 12 4 3 3 -0.97 0.04891748 113 NCT01318070
#> 25 8 26 1 3 1 -0.13 0.07700000 126 NCT00286429
#> 26 8 26 3 3 2 -0.63 0.07600000 130 NCT00286429
#> 27 8 26 4 3 3 -0.71 0.07800000 126 NCT00286429
#> 28 9 12 1 3 1 0.34 0.06010509 103 NCT01318083
#> 29 9 12 3 3 2 -0.60 0.05491252 104 NCT01318083
#> 30 9 12 4 3 3 -0.66 0.05491252 104 NCT01318083
#> 31 10 12 1 3 1 0.04 0.05347391 74 NCT01263483
#> 32 10 12 3 3 2 -0.96 0.06308933 76 NCT01263483
#> 33 10 12 4 3 3 -0.91 0.05400422 79 NCT01263483
#> 34 11 12 1 6 1 -0.01 0.13430944 41 NCT00755846
#> 35 11 12 2 6 2 -0.19 0.12035661 42 NCT00755846
#> 36 11 12 3 6 3 -0.54 0.12189965 42 NCT00755846
#> 37 11 12 4 6 4 -0.56 0.11627553 45 NCT00755846
#> 38 11 12 5 6 5 -0.44 0.12352384 43 NCT00755846
#> 39 11 12 6 6 6 -0.51 0.11909698 44 NCT00755846
#> 40 12 36 3 2 1 -0.67 0.04742520 147 NCT01318122
#> 41 12 36 4 2 2 -0.69 0.04874593 151 NCT01318122
#> 42 13 40 3 2 1 -0.78 0.08194019 82 NCT01263509
#> 43 13 40 4 2 2 -0.92 0.07608902 78 NCT01263509
#> 44 14 12 1 3 1 0.21 0.06400000 100 NCT01318109
#> 45 14 12 3 3 2 -0.54 0.05838404 92 NCT01318109
#> 46 14 12 4 3 3 -0.64 0.05001042 96 NCT01318109
#> agent dose fupcount fups
#> 1 alogliptin 0.00 4 4
#> 2 alogliptin 6.25 4 4
#> 3 alogliptin 12.50 4 4
#> 4 alogliptin 25.00 4 4
#> 5 alogliptin 50.00 4 4
#> 6 alogliptin 0.00 6 6
#> 7 alogliptin 12.50 6 6
#> 8 alogliptin 25.00 6 6
#> 9 alogliptin 6.25 8 8
#> 10 alogliptin 12.50 8 8
#> 11 alogliptin 25.00 8 8
#> 12 alogliptin 50.00 8 8
#> 13 alogliptin 0.00 6 6
#> 14 alogliptin 12.50 6 6
#> 15 alogliptin 25.00 6 6
#> 16 alogliptin 0.00 5 5
#> 17 alogliptin 12.50 5 5
#> 18 alogliptin 25.00 5 5
#> 19 alogliptin 0.00 6 6
#> 20 alogliptin 12.50 6 6
#> 21 alogliptin 25.00 6 6
#> 22 alogliptin 0.00 4 4
#> 23 alogliptin 12.50 4 4
#> 24 alogliptin 25.00 4 4
#> 25 alogliptin 0.00 6 6
#> 26 alogliptin 12.50 6 6
#> 27 alogliptin 25.00 6 6
#> 28 alogliptin 0.00 4 4
#> 29 alogliptin 12.50 4 4
#> 30 alogliptin 25.00 4 4
#> 31 alogliptin 0.00 4 4
#> 32 alogliptin 12.50 4 4
#> 33 alogliptin 25.00 4 4
#> 34 alogliptin 0.00 2 2
#> 35 alogliptin 6.25 2 2
#> 36 alogliptin 12.50 2 2
#> 37 alogliptin 25.00 2 2
#> 38 alogliptin 50.00 2 2
#> 39 alogliptin 100.00 2 2
#> 40 alogliptin 12.50 8 8
#> 41 alogliptin 25.00 8 8
#> 42 alogliptin 12.50 9 9
#> 43 alogliptin 25.00 9 9
#> 44 alogliptin 0.00 4 4
#> 45 alogliptin 12.50 4 4
#> 46 alogliptin 25.00 4 4
#>
#> $studyID
#> [1] "11" "1" "3" "2" "4" "5" "6" "7" "8" "9" "10" "14" "12" "13"
#>
#> $treatments
#> [1] "placebo" "alog_6.25" "alog_12.5" "alog_25" "alog_50" "alog_100"
#>