About

I’m and orthopaedic surgeon and the head of the orthopaedic trauma unit at Danderyd University Hospital, a PhD holder, CEO and founder of DeepMed AB, and a researcher at the Karolinska Institute. My research primarily focuses on artificial intelligence for everyday clinical problems. I’m the head of the CAIR-lab, where we have a wide range of projects exploring AI in a clinical setting. I am also involved in more traditional orthopaedic research projects, with a strong interest in multi-center RCTs to evolve our understanding of how to best treat fractures.

Yes, the name is a rip-off the R-Forge  and it’s partly because I find R tremendously useful in my research. I learned R mostly by studying Quick-R‘s excellent introduction, and  by studying post/posting at Cross Validated and Stack Overflow. I’m currently an organizer for the Stockholm R useR group and maintainer of several R-packages.

Max Gordon

Max Gordon

11 thoughts on “About

  1. Hi Max,

    Tried installing Greg using devtools – seemed RStudio didn’t care for ‘ vol. 79, no. 6, pp. 787b23803, 2009.}’. Got any suggestions?

    TMA

    * installing *source* package ‘Greg’ …
    ** R
    ** inst
    ** tests
    ** preparing package for lazy loading
    ** help
    Error in iconv(lines, encoding, “UTF-8”, sub = “byte”) :
    embedded nul in string: ‘ vol. 79, no. 6, pp. 787b23803, 2009.}’
    ERROR: installing Rd objects failed for package ‘Greg’
    * removing ‘C:/Users/TMA/Documents/R/win-library/3.1/Greg’

  2. Hi Max,

    Just wanted to post to say that I very much enjoyed reading your thesis on hip outcome measures. I am currently undertaking a patient related outcome measure project for knee scores in the UK and found much of your thesis very insightful and of help in planning project.

    Best Wishes

    Charlie

  3. Hi,

    Awesome site, some really interesting stuff!
    I am doing hip register research at the dep. of orthopedics in Odense Denmark.
    I’m currently using R to do my survival analysis. I was wondering if you have the time you could help me with some code that keeps frustrating me?

    Best Wishes
    Rasmus

  4. hey Max, congrats regarding the comorbidities package… I have a hard time installing it in R. Do you mind giving me a quick walkthrough and how i can then call it from SPSS while I have my NIS dataset active?

    Thank you!

  5. Dear Max,

    I tried to install the Greg package, but unfortunately when I tried upload the library I got such error:

    installing the source package ‘Greg’

    trying URL ‘https://cran.rstudio.com/src/contrib/Greg_1.4.1.tar.gz’
    Content type ‘application/x-gzip’ length 205432 bytes (200 KB)
    downloaded 200 KB

    * installing *source* package ‘Greg’ …
    ** package ‘Greg’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    Error in parse(outFile) :
    C:/Users/User/AppData/Local/Temp/RtmpsNBOXO/R.INSTALLe80308f3503/Greg/R/getCrudeAndAdjustedModelData.R:156:71: unexpected ‘>’
    155: frml_4_single_var
    ^
    ERROR: unable to collate and parse R files for package ‘Greg’
    * removing ‘C:/Users/User/Documents/R/win-library/3.6/Greg’
    Warning in install.packages :
    installation of package ‘Greg’ had non-zero exit status

    The downloaded source packages are in
    ‘C:\Users\User\AppData\Local\Temp\RtmpQ5a12S\downloaded_packages’
    > library(Greg)
    Error in library(Greg) : there is no package called ‘Greg’

    Could you please let me know where is my mistake in downloading the package?

    Best wishes,
    Oksana

    • Installation issues are usually version/environment dependent. They are rarely because of a CRAN-published package has errors. CRAN does extensible checks and if there is a hint of an error the package is removed within 1-3 months to prevent any errors.

  6. Hi, Max!
    Nice to see you here.
    May ask a question?
    How can I export the printCrudeAndAdjustedModel object (well-organized table) produced by the Gerg R Package to word, excel, or other document formats?
    I use Rmarkdown to produce PDFs. However, the printCrudeAndAdjustedModel object turned into a mess.

    Thank you very much.
    Greeting from a Ph.D. major in Epidemiology and health statistics.
    Hyan Hu

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.