Create a dataset with the earliest time point only
get.earliest.time.Rd
Takes the earliest 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 earliest 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 set with only the earliest time point included in each study
get.earliest.time(network)
#> $data.ab
#> studyID time treatment narm arm y se n clinicaltrialGov_ID
#> 1 1 2 1 5 1 0.00 0.02159290 75 NCT01263470
#> 2 1 2 2 5 2 -0.16 0.01721384 79 NCT01263470
#> 3 1 2 3 5 3 -0.17 0.02116714 84 NCT01263470
#> 4 1 2 4 5 4 -0.16 0.02103914 79 NCT01263470
#> 5 1 2 5 5 5 -0.15 0.02025158 79 NCT01263470
#> 6 2 4 1 3 1 -0.11 0.05200000 63 NCT00286455
#> 7 2 4 3 3 2 -0.37 0.03500000 131 NCT00286455
#> 8 2 4 4 3 3 -0.45 0.03600000 128 NCT00286455
#> 9 3 12 2 4 1 -0.55 0.07258662 93 NCT01263496
#> 10 3 12 3 4 2 -0.70 0.05482869 97 NCT01263496
#> 11 3 12 4 4 3 -0.74 0.05363391 94 NCT01263496
#> 12 3 12 5 4 4 -0.86 0.05157106 94 NCT01263496
#> 13 4 4 1 3 1 -0.14 0.04200000 90 NCT00286494
#> 14 4 4 3 3 2 -0.40 0.02900000 182 NCT00286494
#> 15 4 4 4 3 3 -0.45 0.03000000 176 NCT00286494
#> 16 5 4 1 3 1 -0.18 0.04200000 89 NCT00286468
#> 17 5 4 3 3 2 -0.40 0.02800000 191 NCT00286468
#> 18 5 4 4 3 3 -0.46 0.02900000 186 NCT00286468
#> 19 6 4 1 3 1 -0.10 0.04400000 91 NCT00286442
#> 20 6 4 3 3 2 -0.36 0.03100000 188 NCT00286442
#> 21 6 4 4 3 3 -0.40 0.03100000 187 NCT00286442
#> 22 7 2 1 3 1 -0.04 0.01734459 115 NCT01318070
#> 23 7 2 3 3 2 -0.22 0.01430194 110 NCT01318070
#> 24 7 2 4 3 3 -0.22 0.01461703 111 NCT01318070
#> 25 8 4 1 3 1 -0.26 0.04500000 114 NCT00286429
#> 26 8 4 3 3 2 -0.47 0.04500000 116 NCT00286429
#> 27 8 4 4 3 3 -0.58 0.04500000 116 NCT00286429
#> 28 9 2 1 3 1 0.08 0.02946134 103 NCT01318083
#> 29 9 2 3 3 2 -0.12 0.02392617 104 NCT01318083
#> 30 9 2 4 3 3 -0.13 0.02019996 104 NCT01318083
#> 31 10 2 1 3 1 -0.01 0.02092458 74 NCT01263483
#> 32 10 2 3 3 2 -0.19 0.01709147 76 NCT01263483
#> 33 10 2 4 3 3 -0.21 0.01968904 79 NCT01263483
#> 34 11 6 1 6 1 0.02 0.09700000 41 NCT00755846
#> 35 11 6 2 6 2 -0.12 0.09500000 42 NCT00755846
#> 36 11 6 3 6 3 -0.35 0.09600000 42 NCT00755846
#> 37 11 6 4 6 4 -0.36 0.09300000 45 NCT00755846
#> 38 11 6 5 6 5 -0.32 0.09700000 43 NCT00755846
#> 39 11 6 6 6 6 -0.31 0.09400000 44 NCT00755846
#> 40 12 8 3 2 1 -0.68 0.02888231 165 NCT01318122
#> 41 12 8 4 2 2 -0.73 0.03240606 164 NCT01318122
#> 42 13 8 3 2 1 -0.69 0.04630668 107 NCT01263509
#> 43 13 8 4 2 2 -0.79 0.04170000 100 NCT01263509
#> 44 14 2 1 3 1 0.06 0.01970000 100 NCT01318109
#> 45 14 2 3 3 2 -0.13 0.02043441 92 NCT01318109
#> 46 14 2 4 3 3 -0.13 0.01530931 96 NCT01318109
#> agent dose fupcount fups
#> 1 alogliptin 0.00 1 4
#> 2 alogliptin 6.25 1 4
#> 3 alogliptin 12.50 1 4
#> 4 alogliptin 25.00 1 4
#> 5 alogliptin 50.00 1 4
#> 6 alogliptin 0.00 1 6
#> 7 alogliptin 12.50 1 6
#> 8 alogliptin 25.00 1 6
#> 9 alogliptin 6.25 1 8
#> 10 alogliptin 12.50 1 8
#> 11 alogliptin 25.00 1 8
#> 12 alogliptin 50.00 1 8
#> 13 alogliptin 0.00 1 6
#> 14 alogliptin 12.50 1 6
#> 15 alogliptin 25.00 1 6
#> 16 alogliptin 0.00 1 5
#> 17 alogliptin 12.50 1 5
#> 18 alogliptin 25.00 1 5
#> 19 alogliptin 0.00 1 6
#> 20 alogliptin 12.50 1 6
#> 21 alogliptin 25.00 1 6
#> 22 alogliptin 0.00 1 4
#> 23 alogliptin 12.50 1 4
#> 24 alogliptin 25.00 1 4
#> 25 alogliptin 0.00 1 6
#> 26 alogliptin 12.50 1 6
#> 27 alogliptin 25.00 1 6
#> 28 alogliptin 0.00 1 4
#> 29 alogliptin 12.50 1 4
#> 30 alogliptin 25.00 1 4
#> 31 alogliptin 0.00 1 4
#> 32 alogliptin 12.50 1 4
#> 33 alogliptin 25.00 1 4
#> 34 alogliptin 0.00 1 2
#> 35 alogliptin 6.25 1 2
#> 36 alogliptin 12.50 1 2
#> 37 alogliptin 25.00 1 2
#> 38 alogliptin 50.00 1 2
#> 39 alogliptin 100.00 1 2
#> 40 alogliptin 12.50 1 8
#> 41 alogliptin 25.00 1 8
#> 42 alogliptin 12.50 1 9
#> 43 alogliptin 25.00 1 9
#> 44 alogliptin 0.00 1 4
#> 45 alogliptin 12.50 1 4
#> 46 alogliptin 25.00 1 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"
#>