diff --git a/DESCRIPTION b/DESCRIPTION index 251378b0..9d62c704 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -13,7 +13,7 @@ Authors@R: c( given = c("Christian", "F."), family = "Luz", email = "c.f.luz@umcg.nl", - role = c("aut", "rev"), + role = "aut", comment = c(ORCID = "0000-0001-5809-5995")), person( given = c("Erwin", "E.", "A."), diff --git a/_pkgdown.yml b/_pkgdown.yml index 1f73ca9e..8f3683e5 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -41,6 +41,9 @@ navbar: - text: 'Work with WHONET data' icon: 'fa-globe-americas' href: 'articles/WHONET.html' + - text: 'Import data from SPSS/SAS/Stata' + icon: 'fa-file-upload' + href: 'articles/SPSS.html' - text: 'Apply EUCAST rules' icon: 'fa-exchange-alt' href: 'articles/EUCAST.html' diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index b66d2788..78f0eccf 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -121,6 +121,13 @@ Work with WHONET data +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/AMR.html b/docs/articles/AMR.html index 6bdc843a..26a20446 100644 --- a/docs/articles/AMR.html +++ b/docs/articles/AMR.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • @@ -320,67 +327,67 @@ -2016-08-15 -E9 -Hospital C +2017-12-27 +C5 +Hospital A Staphylococcus aureus S -R +S S S M -2013-02-21 -I8 +2012-11-20 +Y5 Hospital D -Streptococcus pneumoniae -S -I -R -S -M - - -2015-05-12 -F4 -Hospital B Escherichia coli S S S S -M - - -2013-09-20 -M3 -Hospital A -Escherichia coli -S -I -S -S -M - - -2013-08-03 -V8 -Hospital C -Streptococcus pneumoniae -S -S -S -S F - -2017-10-01 -V9 -Hospital C -Staphylococcus aureus + +2011-06-25 +I4 +Hospital B +Escherichia coli +S +S +R +S +M + + +2016-10-16 +N10 +Hospital A +Escherichia coli +S +S +S +S +F + + +2015-09-01 +L1 +Hospital D +Escherichia coli +R +S +S +S +M + + +2013-12-14 +Z3 +Hospital A +Klebsiella pneumoniae +R S -I S S F @@ -404,8 +411,8 @@ #> #> Item Count Percent Cum. Count Cum. Percent #> --- ----- ------- -------- ----------- ------------- -#> 1 M 10,444 52.2% 10,444 52.2% -#> 2 F 9,556 47.8% 20,000 100.0% +#> 1 M 10,432 52.2% 10,432 52.2% +#> 2 F 9,568 47.8% 20,000 100.0%

    So, we can draw at least two conclusions immediately. From a data scientist perspective, the data looks clean: only values M and F. From a researcher perspective: there are slightly more men. Nothing we didn’t already know.

    The data is already quite clean, but we still need to transform some variables. The bacteria column now consists of text, and we want to add more variables based on microbial IDs later on. So, we will transform this column to valid IDs. The mutate() function of the dplyr package makes this really easy:

    data <- data %>%
    @@ -436,10 +443,10 @@
     #> Kingella kingae (no changes)
     #> 
     #> EUCAST Expert Rules, Intrinsic Resistance and Exceptional Phenotypes (v3.1, 2016)
    -#> Table 1:  Intrinsic resistance in Enterobacteriaceae (1293 changes)
    +#> Table 1:  Intrinsic resistance in Enterobacteriaceae (1241 changes)
     #> Table 2:  Intrinsic resistance in non-fermentative Gram-negative bacteria (no changes)
     #> Table 3:  Intrinsic resistance in other Gram-negative bacteria (no changes)
    -#> Table 4:  Intrinsic resistance in Gram-positive bacteria (2812 changes)
    +#> Table 4:  Intrinsic resistance in Gram-positive bacteria (2713 changes)
     #> Table 8:  Interpretive rules for B-lactam agents and Gram-positive cocci (no changes)
     #> Table 9:  Interpretive rules for B-lactam agents and Gram-negative rods (no changes)
     #> Table 10: Interpretive rules for B-lactam agents and other Gram-negative bacteria (no changes)
    @@ -455,9 +462,9 @@
     #> Non-EUCAST: piperacillin/tazobactam = S where piperacillin = S (no changes)
     #> Non-EUCAST: trimethoprim/sulfa = S where trimethoprim = S (no changes)
     #> 
    -#> => EUCAST rules affected 7,447 out of 20,000 rows
    +#> => EUCAST rules affected 7,301 out of 20,000 rows
     #>    -> added 0 test results
    -#>    -> changed 4,105 test results (0 to S; 0 to I; 4,105 to R)
    +#> -> changed 3,954 test results (0 to S; 0 to I; 3,954 to R)

    @@ -482,8 +489,8 @@ #> NOTE: Using column `bacteria` as input for `col_mo`. #> NOTE: Using column `date` as input for `col_date`. #> NOTE: Using column `patient_id` as input for `col_patient_id`. -#> => Found 5,692 first isolates (28.5% of total)

    -

    So only 28.5% is suitable for resistance analysis! We can now filter on it with the filter() function, also from the dplyr package:

    +#> => Found 5,669 first isolates (28.3% of total) +

    So only 28.3% is suitable for resistance analysis! We can now filter on it with the filter() function, also from the dplyr package:

    data_1st <- data %>% 
       filter(first == TRUE)

    For future use, the above two syntaxes can be shortened with the filter_first_isolate() function:

    @@ -509,10 +516,10 @@ 1 -2010-06-20 -Y4 +2010-01-04 +M1 B_ESCHR_COL -S +R S R S @@ -520,10 +527,10 @@ 2 -2010-07-31 -Y4 +2010-01-27 +M1 B_ESCHR_COL -S +R S S S @@ -531,8 +538,8 @@ 3 -2010-08-26 -Y4 +2010-05-07 +M1 B_ESCHR_COL S S @@ -542,8 +549,8 @@ 4 -2010-12-11 -Y4 +2010-06-09 +M1 B_ESCHR_COL R S @@ -553,8 +560,8 @@ 5 -2010-12-30 -Y4 +2010-07-23 +M1 B_ESCHR_COL R S @@ -564,30 +571,30 @@ 6 -2011-04-02 -Y4 +2010-09-29 +M1 B_ESCHR_COL -R -I S R +S +S FALSE 7 -2011-04-06 -Y4 +2010-10-14 +M1 B_ESCHR_COL -S -S +R S R +S FALSE 8 -2011-04-07 -Y4 +2010-10-15 +M1 B_ESCHR_COL S S @@ -597,29 +604,29 @@ 9 -2011-05-28 -Y4 +2010-10-16 +M1 B_ESCHR_COL -R S +R S S FALSE 10 -2011-09-09 -Y4 +2010-11-16 +M1 B_ESCHR_COL S S -R S -TRUE +S +FALSE -

    Only 2 isolates are marked as ‘first’ according to CLSI guideline. But when reviewing the antibiogram, it is obvious that some isolates are absolutely different strains and should be included too. This is why we weigh isolates, based on their antibiogram. The key_antibiotics() function adds a vector with 18 key antibiotics: 6 broad spectrum ones, 6 small spectrum for Gram negatives and 6 small spectrum for Gram positives. These can be defined by the user.

    +

    Only 1 isolates are marked as ‘first’ according to CLSI guideline. But when reviewing the antibiogram, it is obvious that some isolates are absolutely different strains and should be included too. This is why we weigh isolates, based on their antibiogram. The key_antibiotics() function adds a vector with 18 key antibiotics: 6 broad spectrum ones, 6 small spectrum for Gram negatives and 6 small spectrum for Gram positives. These can be defined by the user.

    If a column exists with a name like ‘key(…)ab’ the first_isolate() function will automatically use it and determine the first weighted isolates. Mind the NOTEs in below output:

    data <- data %>% 
       mutate(keyab = key_antibiotics(.)) %>% 
    @@ -630,7 +637,7 @@
     #> NOTE: Using column `patient_id` as input for `col_patient_id`.
     #> NOTE: Using column `keyab` as input for `col_keyantibiotics`. Use col_keyantibiotics  = FALSE to prevent this.
     #> [Criterion] Inclusion based on key antibiotics, ignoring I.
    -#> => Found 15,866 first weighted isolates (79.3% of total)
    +#> => Found 15,859 first weighted isolates (79.3% of total) @@ -647,10 +654,10 @@ - - + + - + @@ -659,10 +666,10 @@ - - + + - + @@ -671,20 +678,20 @@ - - + + - + - - + + @@ -695,8 +702,8 @@ - - + + @@ -707,32 +714,32 @@ - - + + - - + + - - + + - - + + - - + + @@ -743,11 +750,11 @@ - - + + - + @@ -755,23 +762,23 @@ - - + + - - + +
    isolate
    12010-06-20Y42010-01-04M1 B_ESCHR_COLSR S R S
    22010-07-31Y42010-01-27M1 B_ESCHR_COLSR S S S
    32010-08-26Y42010-05-07M1 B_ESCHR_COL S S S S FALSEFALSETRUE
    42010-12-11Y42010-06-09M1 B_ESCHR_COL R S
    52010-12-30Y42010-07-23M1 B_ESCHR_COL R S
    62011-04-02Y42010-09-29M1 B_ESCHR_COLRI S RSS FALSE TRUE
    72011-04-06Y42010-10-14M1 B_ESCHR_COLSSR S RS FALSE TRUE
    82011-04-07Y42010-10-15M1 B_ESCHR_COL S S
    92011-05-28Y42010-10-16M1 B_ESCHR_COLR SR S S FALSE
    102011-09-09Y42010-11-16M1 B_ESCHR_COL S SR STRUESFALSE TRUE
    -

    Instead of 2, now 8 isolates are flagged. In total, 79.3% of all isolates are marked ‘first weighted’ - 50.9% more than when using the CLSI guideline. In real life, this novel algorithm will yield 5-10% more isolates than the classic CLSI guideline.

    +

    Instead of 1, now 9 isolates are flagged. In total, 79.3% of all isolates are marked ‘first weighted’ - 51% more than when using the CLSI guideline. In real life, this novel algorithm will yield 5-10% more isolates than the classic CLSI guideline.

    As with filter_first_isolate(), there’s a shortcut for this new algorithm too:

    data_1st <- data %>% 
       filter_first_weighted_isolate()
    -

    So we end up with 15,866 isolates for analysis.

    +

    So we end up with 15,859 isolates for analysis.

    We can remove unneeded columns:

    data_1st <- data_1st %>% 
       select(-c(first, keyab))
    @@ -796,42 +803,74 @@ -1 -2016-08-15 -E9 -Hospital C -B_STPHY_AUR +4 +2016-10-16 +N10 +Hospital A +B_ESCHR_COL S +S +S +S +F +Gram negative +Escherichia +coli +TRUE + + +5 +2015-09-01 +L1 +Hospital D +B_ESCHR_COL R S S +S M +Gram negative +Escherichia +coli +TRUE + + +6 +2013-12-14 +Z3 +Hospital A +B_KLBSL_PNE +R +S +S +S +F +Gram negative +Klebsiella +pneumoniae +TRUE + + +7 +2011-09-19 +U9 +Hospital A +B_STPHY_AUR +S +S +S +S +F Gram positive Staphylococcus aureus TRUE - -2 -2013-02-21 -I8 -Hospital D -B_STRPTC_PNE -S -I -R -R -M -Gram positive -Streptococcus -pneumoniae -TRUE - -3 -2015-05-12 -F4 -Hospital B +8 +2016-02-23 +H1 +Hospital A B_ESCHR_COL S S @@ -844,47 +883,15 @@ TRUE -5 -2013-08-03 -V8 -Hospital C -B_STRPTC_PNE -S -S -S -R -F -Gram positive -Streptococcus -pneumoniae -TRUE - - -6 -2017-10-01 -V9 -Hospital C -B_STPHY_AUR -S -I -S -S -F -Gram positive -Staphylococcus -aureus -TRUE - - -7 -2014-06-20 -E9 +9 +2016-08-02 +I4 Hospital B B_ESCHR_COL -S -S R S +S +S M Gram negative Escherichia @@ -908,9 +915,9 @@
    freq(paste(data_1st$genus, data_1st$species))

    Or can be used like the dplyr way, which is easier readable:

    data_1st %>% freq(genus, species)
    -

    Frequency table of genus and species from a data.frame (15,866 x 13)

    +

    Frequency table of genus and species from a data.frame (15,859 x 13)

    Columns: 2
    -Length: 15,866 (of which NA: 0 = 0.00%)
    +Length: 15,859 (of which NA: 0 = 0.00%)
    Unique: 4

    Shortest: 16
    Longest: 24

    @@ -927,33 +934,33 @@ Longest: 24

    1 Escherichia coli -7,860 -49.5% -7,860 -49.5% +7,917 +49.9% +7,917 +49.9% 2 Staphylococcus aureus -3,892 -24.5% -11,752 -74.1% +3,901 +24.6% +11,818 +74.5% 3 Streptococcus pneumoniae -2,556 -16.1% -14,308 -90.2% +2,478 +15.6% +14,296 +90.1% 4 Klebsiella pneumoniae -1,558 -9.8% -15,866 +1,563 +9.9% +15,859 100.0% @@ -964,7 +971,7 @@ Longest: 24

    Resistance percentages

    The functions portion_R, portion_RI, portion_I, portion_IS and portion_S can be used to determine the portion of a specific antimicrobial outcome. They can be used on their own:

    data_1st %>% portion_IR(amox)
    -#> [1] 0.4766797
    +#> [1] 0.4776468

    Or can be used in conjuction with group_by() and summarise(), both from the dplyr package:

    data_1st %>% 
       group_by(hospital) %>% 
    @@ -977,19 +984,19 @@ Longest: 24

    Hospital A -0.4749633 +0.4658398 Hospital B -0.4879713 +0.4821041 Hospital C -0.4761905 +0.4874459 Hospital D -0.4600062 +0.4803681 @@ -1007,23 +1014,23 @@ Longest: 24

    Hospital A -0.4749633 -4773 +0.4658398 +4757 Hospital B -0.4879713 -5570 +0.4821041 +5532 Hospital C -0.4761905 +0.4874459 2310 Hospital D -0.4600062 -3213 +0.4803681 +3260 @@ -1043,27 +1050,27 @@ Longest: 24

    Escherichia -0.7249364 -0.8996183 -0.9725191 +0.7305798 +0.8974359 +0.9760010 Klebsiella -0.7291399 -0.9037227 -0.9762516 +0.7370441 +0.9040307 +0.9776072 Staphylococcus -0.7410072 -0.9229188 -0.9786742 +0.7303256 +0.9200205 +0.9771853 Streptococcus -0.7292645 +0.7332526 0.0000000 -0.7292645 +0.7332526 diff --git a/docs/articles/AMR_files/figure-html/plot 1-1.png b/docs/articles/AMR_files/figure-html/plot 1-1.png index b8ebcb6c..6c74e47b 100644 Binary files a/docs/articles/AMR_files/figure-html/plot 1-1.png and b/docs/articles/AMR_files/figure-html/plot 1-1.png differ diff --git a/docs/articles/AMR_files/figure-html/plot 3-1.png b/docs/articles/AMR_files/figure-html/plot 3-1.png index 33c83dcc..7e16efff 100644 Binary files a/docs/articles/AMR_files/figure-html/plot 3-1.png and b/docs/articles/AMR_files/figure-html/plot 3-1.png differ diff --git a/docs/articles/AMR_files/figure-html/plot 4-1.png b/docs/articles/AMR_files/figure-html/plot 4-1.png index 9bfe6803..913447ee 100644 Binary files a/docs/articles/AMR_files/figure-html/plot 4-1.png and b/docs/articles/AMR_files/figure-html/plot 4-1.png differ diff --git a/docs/articles/AMR_files/figure-html/plot 5-1.png b/docs/articles/AMR_files/figure-html/plot 5-1.png index 70b13bd3..57c3c5c1 100644 Binary files a/docs/articles/AMR_files/figure-html/plot 5-1.png and b/docs/articles/AMR_files/figure-html/plot 5-1.png differ diff --git a/docs/articles/EUCAST.html b/docs/articles/EUCAST.html index 84e39b40..43817373 100644 --- a/docs/articles/EUCAST.html +++ b/docs/articles/EUCAST.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/G_test.html b/docs/articles/G_test.html index 439fdc60..51b354ec 100644 --- a/docs/articles/G_test.html +++ b/docs/articles/G_test.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/SPSS.html b/docs/articles/SPSS.html new file mode 100644 index 00000000..fdf4eab7 --- /dev/null +++ b/docs/articles/SPSS.html @@ -0,0 +1,397 @@ + + + + + + + +How to import data from SPSS / SAS / Stata • AMR (for R) + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    +
    + + + + +
    +

    +SPSS / SAS / Stata

    +

    SPSS (Statistical Package for the Social Sciences) is probably the most well-known software package for statistical analysis. SPSS is easier to learn than R, because in SPSS you only have to click a menu to run parts of your analysis. Because of its user-friendlyness, it is taught at universities and particularly useful for students who are new to statistics. From my experience, I would guess that pretty much all (bio)medical students know it at the time they graduate. SAS and Stata are statistical packages popular in big industries.

    +
    +
    +

    +Compared to R

    +

    As said, SPSS is easier to learn than R. But SPSS, SAS and Stata come with major downsides when comparing it with R:

    +
      +
    • +

      R is highly modular.

      +

      The official R network (CRAN) features almost 14,000 packages at the time of writing, our AMR package being one of them. All these packages were peer-reviewed before publication. Aside from this official channel, there are also developers who choose not to submit to CRAN, but rather keep it on their own public repository, like GitLab or GitHub. So there may even be a lot more than 14,000 packages out there.

      +

      Bottomline is, you can really extend it yourself or ask somebody to do this for you. Take for example our AMR package. SPSS, SAS and Stata will never know what a valid MIC value is (so data might not be clean) or what the Gram stain of E. coli is. Or the fact that all species of Klebiella are resistant to amoxicillin.

      +
    • +
    • +

      R is extremely flexible.

      +

      Because you write the syntax yourself, you can do anything you want. The flexibility in transforming, gathering, grouping, summarising and drawing plots is endless - with SPSS, SAS or Stata you are bound to their algorithms and styles. It may be a bit flexible, but you can never create that very specific publication-ready plot without using other (paid) software.

      +
    • +
    • +

      R can be easily automated.

      +

      Over the last years, R Markdown has really made an interesting development. With R Markdown, you can very easily reproduce your reports, whether it’s to Word, Powerpoint, a website, a PDF document or just the raw data to Excel. I use this a lot to generate monthly reports automatically. Just write the code once and enjoy the automatically updated reports at any interval you like.

      +

      For an even more professional environment, you could create Shiny apps: live manipulation of data using a custom made website. The webdesign knowledge needed (Javascript, CSS, HTML) is almost zero.

      +
    • +
    • +

      R has a huge community.

      +

      Many R users just ask questions on website like stackoverflow.com, the largest online community for programmers. At the time of writing, around 275,000 R questions have been asked on this platform (which covers questions and answer for any programming language). In my own experience, most questions are answered within a couple of minutes.

      +
    • +
    • +

      R understands any data type, including SPSS/SAS/Stata.

      +

      And that’s not vice versa I’m afraid. You can import data from any source into R. As said, from SPSS/SAS/Stata (link), but also from Excel (link), from flat files like CSV, TXT or TSV (link), or directly from databases or datawarehouses from anywhere on the world (link). You can even scrape websites to download tables that are live on the internet (link).

      +

      And the best part - you can export from R to all data formats as well. So you can import an SPSS file, do your analysis neatly in R and export back to SPSS. Although you might omit that very last step.

      +
    • +
    • +

      R is completely free and open-source.

      +

      No strings attached. It was created and is being maintained by volunteers who believe that (data) science should be open and publicly available to everybody. SPSS, SAS and Stata are quite expensive. IBM SPSS Staticstics only comes with subscriptions nowadays, varying between USD 1,300 and USD 8,500 per computer per year. SAS Analytics Pro costs around USD 10,000 per computer. Stata also has a business model with subscription fees, varying between USD 600 and USD 1,200 per computer per year, but lower prices come with a limitation of the number of variables you can work with.

      +

      If you are working at a midsized or small company, you can save it tens of thousands of dollars by using R instead of SPSS - gaining even more functions and flexibility. And all R enthousiasts can do as much PR as they want (like I do here), because nobody is officially associated with or affiliated by R. It is really free.

      +
    • +
    +

    If you sometimes write syntaxes in SPSS to run a complete analysis or to ‘automate’ some of your work, you should perhaps do this in R. You will notice that writing syntaxes in R is a lot more nifty and clever than in SPSS.

    +
    +
    +

    +Import data from SPSS/SAS/Stata

    +
    +

    +RStudio

    +

    To work with R, probably the best option is to use RStudio. It is an open-source and free desktop environment which not only allows you to run R code, but also supports project management, version management, package management and convenient import menu to work with other data sources. You can also run RStudio Server, which is nothing less than the complete RStudio software available as a website (e.g. in your corporate network or at home).

    +

    To import a data file, just click Import Dataset in the Environment tab:

    +

    +

    If additional packages are needed, RStudio will ask you if they should be installed on beforehand.

    +

    In the the window that opens, you can define all options (parameters) that should be used for import and you’re ready to go:

    +

    +

    If you want named variables to be imported as factors so it resembles SPSS more, use as_factor().

    +

    The difference is this:

    + +
    +
    +

    +Base R

    +

    To import data from SPSS, SAS or Stata, you can use the great haven package yourself:

    + +

    You can now import files as follows:

    +
    +

    +SPSS

    +

    To read files from SPSS into R:

    +
    # read any SPSS file based on file extension (best way):
    +read_spss(file = "path/to/file")
    +
    +# read .sav or .zsav file:
    +read_sav(file = "path/to/file")
    +
    +# read .por file:
    +read_por(file = "path/to/file")
    +

    Do not forget about as_factor(), as mentioned above.

    +

    To export your R objects to the SPSS file format:

    +
    # save as .sav file:
    +write_sav(data = yourdata, path = "path/to/file")
    +
    +# save as compressed .zsav file:
    +write_sav(data = yourdata, path = "path/to/file", compress = TRUE)
    +
    +
    +

    +SAS

    +

    To read files from SAS into R:

    +
    # read .sas7bdat + .sas7bcat files:
    +read_sas(data_file = "path/to/file", catalog_file = NULL)
    +
    +# read SAS transport files (version 5 and version 8):
    +read_xpt(file = "path/to/file")
    +

    To export your R objects to the SAS file format:

    +
    # save as regular SAS file:
    +write_sas(data = yourdata, path = "path/to/file")
    +
    +# the SAS transport format is an open format 
    +# (required for submission of the data to the FDA)
    +write_xpt(data = yourdata, path = "path/to/file", version = 8)
    +
    +
    +

    +Stata

    +

    To read files from Stata into R:

    +
    # read .dta file:
    +read_stata(file = "/path/to/file")
    +
    +# works exactly the same:
    +read_dta(file = "/path/to/file")
    +

    To export your R objects to the Stata file format:

    + +
    +
    +
    +
    + + + +
    + + + +
    + + + + + diff --git a/docs/articles/WHONET.html b/docs/articles/WHONET.html index 7e0c1b40..34d9fc96 100644 --- a/docs/articles/WHONET.html +++ b/docs/articles/WHONET.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/atc_property.html b/docs/articles/atc_property.html index 6fb5fb0a..a958d76c 100644 --- a/docs/articles/atc_property.html +++ b/docs/articles/atc_property.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/benchmarks.html b/docs/articles/benchmarks.html index c366169e..45722e41 100644 --- a/docs/articles/benchmarks.html +++ b/docs/articles/benchmarks.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/freq.html b/docs/articles/freq.html index ca9f0361..db8b423f 100644 --- a/docs/articles/freq.html +++ b/docs/articles/freq.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/index.html b/docs/articles/index.html index 88a1f82d..87d81222 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -121,6 +121,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • @@ -232,6 +239,7 @@
  • How to conduct AMR analysis
  • How to apply EUCAST rules
  • How to use the *G*-test
  • +
  • How to import data from SPSS / SAS / Stata
  • How to work with WHONET data
  • How to get properties of an antibiotic
  • Benchmarks
  • diff --git a/docs/articles/mo_property.html b/docs/articles/mo_property.html index 3a1da9ed..7cd41212 100644 --- a/docs/articles/mo_property.html +++ b/docs/articles/mo_property.html @@ -83,6 +83,13 @@ Work with WHONET data +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/articles/resistance_predict.html b/docs/articles/resistance_predict.html index 531e53c3..20f66452 100644 --- a/docs/articles/resistance_predict.html +++ b/docs/articles/resistance_predict.html @@ -83,6 +83,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • diff --git a/docs/authors.html b/docs/authors.html index a2906631..dded1b7f 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -121,6 +121,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • @@ -230,7 +237,7 @@

  • -

    Christian F. Luz. Author, reviewer. ORCID +

    Christian F. Luz. Author. ORCID

  • diff --git a/docs/extra.css b/docs/extra.css index 9d2cdc72..2a1d3b1d 100644 --- a/docs/extra.css +++ b/docs/extra.css @@ -79,6 +79,10 @@ a pre[href], a pre[href]:hover, a pre[href]:focus { /* adjusted colour for all real links; having href attribute */ color: #128f76; } +.ot, .dv { + /* numbers and TRUE/FALSE */ + color: slategray; +} /* syntax font */ pre, code { diff --git a/docs/extra.js b/docs/extra.js index f8e2d62c..a8fbe436 100644 --- a/docs/extra.js +++ b/docs/extra.js @@ -56,6 +56,20 @@ $( document ).ready(function() { '' + ''); + // doctoral titles of authors + function doct_tit(x) { + if (typeof(x) != "undefined") { + x = x.replace("Corinna", "Dr Corinna"); + x = x.replace("Alex", "Prof Dr Alex"); + x = x.replace("Bhanu", "Prof Dr Bhanu"); + x = x.replace(/Author, thesis advisor/g, "Doctoral advisor"); + } + return(x); + } + $(".template-authors").html(doct_tit($(".template-authors").html())); + $(".developers").html(doct_tit($(".developers").html())); + $("footer").html(doct_tit($("footer").html())); + // Edit title of manual $('.template-reference-index h1').text('Manual'); }); diff --git a/docs/import.png b/docs/import.png new file mode 100644 index 00000000..0a0f9064 Binary files /dev/null and b/docs/import.png differ diff --git a/docs/import1.png b/docs/import1.png new file mode 100644 index 00000000..0a0f9064 Binary files /dev/null and b/docs/import1.png differ diff --git a/docs/import2.png b/docs/import2.png new file mode 100644 index 00000000..e1f9dd2b Binary files /dev/null and b/docs/import2.png differ diff --git a/docs/index.html b/docs/index.html index f6aadcd1..08845d9e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -85,6 +85,13 @@ Work with WHONET data
  • +
  • + + + + Import data from SPSS/SAS/Stata + +
  • @@ -189,9 +196,10 @@

    (TLDR - to find out how to conduct AMR analysis, please continue reading here to get started.


    -

    AMR is a free and open-source R package to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial properties by using evidence-based methods. It supports any table format, including WHONET/EARS-Net data.

    +

    AMR is a free and open-source R package to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial properties by using evidence-based methods. It supports any data format, including WHONET/EARS-Net data.

    After installing this package, R knows almost all ~20,000 microorganisms and ~500 antibiotics by name and code, and knows all about valid RSI and MIC values.

    -

    We created this package for both academic research and routine analysis at the Faculty of Medical Sciences of the University of Groningen and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG). This R package is actively maintained and free software; you can freely use and distribute it for both personal and commercial (but not patent) purposes under the terms of the GNU General Public License version 2.0 (GPL-2), as published by the Free Software Foundation. Read the full license here.

    +

    Used to SPSS? Read our tutorial on how to import data from SPSS, SAS or Stata and learn in which ways R outclasses any of these statistical packages.

    +

    We created this package for both academic research and routine analysis at the Faculty of Medical Sciences of the University of Groningen, the Netherlands, and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG). This R package is actively maintained and is free software; you can freely use and distribute it for both personal and commercial (but not patent) purposes under the terms of the GNU General Public License version 2.0 (GPL-2), as published by the Free Software Foundation. Read the full license here.

    This package can be used for: