Publications by R on Stats and R

Web scraping in R

15.01.2023

Introduction HTML and CSS Web scraping vs. APIs Why does web scraping exist if APIs are so powerful and do exactly the same work? Web scraping in R rvest HTTP GET request Parsing HTML content CSS selector XPath Getting attributes A real application of web scraping in R HTTP GET request Parsing HTML content and getting attributes Analysis...

11588 sym R (8337 sym/24 pcs) 14 img

Paper: ‘EpiLPS: A fast and flexible Bayesian tool for estimation of the time-varying reproduction number’

18.10.2022

Introduction Motivation Getting started A simulated example Smoothing the epidemic curve and estimating \(\mathcal{R}_t\) USA hospitalization data References Introduction A colleague (and friend) of mine recently published a research paper titled “EpiLPS: A fast and flexible Bayesian tool for estimation of the time-varying reproduction numbe...

8881 sym R (5148 sym/10 pcs) 12 img

What is survival analysis? Examples by hand and in R

21.12.2022

Introduction What is survival analysis? Why do we need special methods for survival analysis? Common functions in survival analysis Survival function Cumulative hazard function Hazard function Estimation By hand In R Hypothesis testing Log-rank test By hand In R To go further References Introduction For the last post of the year, I would ...

26032 sym R (4481 sym/21 pcs) 18 img 7 tbl

How to keep yourself updated with the latest R news?

12.10.2022

Introduction How do I keep track? Twitter Newsletters Conclusion Introduction At the end of one of the training sessions I gave on R, a student asked me the following question: How do you keep yourself updated with the latest R news? It is true that R, being open source (meaning that everyone can contribute), is evolving rapidly. This means ...

4229 sym 2 img

Paper: ‘Semi-Markov modeling for cancer insurance’

05.04.2022

I am happy to announce that our paper entitled “Semi-Markov modeling for cancer insurance” has been accepted for publication in the European Actuarial Journal. Advancements in medicine and biostatistics have already resulted in a better access to insurance for people diagnosed with cancer. This materializes into the “right to be forgotten�...

2052 sym 2 img

Koh-Lanta 2022: the ambassadors probability problem

15.05.2022

Introduction Before 2022 In 2022 Probabilities computation in R First draw Second draw Third draw Game limited to 3 draws Game limited to 5 draws Game limited to 100 draws Game limited to the number of necessary draws Final winning probabilities Visual representations Coded into a function Conclusion Introduction There is a popular TV show bro...

16421 sym R (12426 sym/21 pcs) 6 img

One-sample Wilcoxon test in R

06.07.2022

Introduction When? Data How? Combine statistical test and plot References Introduction In a previous article, we showed how to do a two-sample Wilcoxon test in R. Remember that there are actually two versions of this test: The Mann-Whitney-Wilcoxon test (also referred as Wilcoxon rank sum test or Mann-Whitney U test), used to compare two indepe...

8720 sym R (1721 sym/9 pcs) 10 img

How to install R and RStudio?

16.12.2019

What is R and RStudio? R RStudio The main components of RStudio Examples of code Calculator Comments Store and print values Vectors Matrices Generate random values Plot What is R and RStudio? R The statistical program R is nothing more than a programming language, mainly used for data manipulation and to perform statistical analyses. At the ti...

10188 sym R (998 sym/12 pcs) 24 img

How to install R and RStudio?

16.12.2019

What is R and RStudio? R RStudio The main components of RStudio Examples of code Calculator Comments Store and print values Vectors Matrices Generate random values Plot What is R and RStudio? R R is nothing more than a programming language. At the time of writing, this language is (one of) the leading program in statistics, although not the on...

8710 sym R (998 sym/12 pcs) 14 img

How to import an Excel file in RStudio?

17.12.2019

Introduction Transform an Excel file to a CSV file R working directory Get working directory Set working directory User-friendly method Via the console Via the text editor Import your dataset User-friendly way Via the text editor Import SPSS (.sav) files Introduction As we have seen in this article on how to install R and RStudio, R is useful ...

14678 sym R (192 sym/2 pcs) 14 img