Generates an object of class PMpta.targ which can be used in the makePTA method for PM_pta or PM_sim for targets sampled from a distribution.
Arguments
- x
A data.frame or name of .csv file in working directory whose first two columns are targets and the number of samples for each target. An example can be seen for Staphylococcus aureus susceptibility to vancomycin at EUCAST.
Examples
library(PmetricsData)
makePTAtarget(mic1)
#> target n
#> 1 0.002 0
#> 2 0.004 0
#> 3 0.008 0
#> 4 0.016 0
#> 5 0.032 0
#> 6 0.064 1
#> 7 0.125 69
#> 8 0.250 539
#> 9 0.500 13997
#> 10 1.000 68601
#> 11 2.000 8445
#> 12 4.000 218
#> 13 8.000 3
#> 14 16.000 0
#> 15 32.000 1
#> 16 64.000 1
#> 17 128.000 1
#> 18 256.000 0
#> 19 512.000 0