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.
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’
Hi TMA,
A reference contained a – that wasn’t utf-8 compliant, should be fixed now. Thanks for the report!
/Max
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
Thanks! I’m glad to hear that you found my thesis useful. Let me know if you want a printed copy.
Good luck with your project!
Max
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
Thanks a lot for doing the ICD10 mod to the comorbidities package.
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!
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.
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
The printCrudeAndAdjustedModel is for generating HTML-output, you can try to hack it by replacing the htmlTable with the Hmisc::latex() function