Skip to content

Lulliter/R4stats

Repository files navigation

Intro to Statistics with R

This website https://r4statistics.com/ hosts some teaching material on “Introduction to Statistics & Machine Learning with R” — an intensive workshop that includes both Lectures and Practice Sessions to teach & consolidate the concepts learned using programming.

  • Originally designed for a summer workshop offered in July of 2024 to a group of PhD students from various EU universities specializing in life sciences ---see https://R4biostats.com/.

TO DO

  • ✅ Must do manual

    • *.PPTX 2 *.PDF LOOSES THE EQUATIONS!!!!!
  • Rivedere practice/practice_slides/slides_lab06.qmd &&& verificare file practice/Rcode/lab06_code.R

    • ️️😎 ️OKKIO che ho fatto nuova funzione che pass da slide a R code R_resources/extract_r_code.sh
  • ️🔳 practice/practice_slides/slides_lab05.qmd-->> standalone lesson on logistic regression for my website

  • ️🔳 ripulire un po' di cose extra (lez e labs)

Extra TO DO

  • ️🔳 su lez 4vedi anche programma di Causal Inference in Econometrics - Online Course di Nick Huntington-Klein
  • ️◽ [add renv] bc this is going to last
  • ️◽ turn re-usable practice slides code into tidyeval functions (plot etc) to be able to replace with different datasets
  • ️◽ ultimare practice/practice_slides/slides_lab05.qmd + practice/RCODE 5 con:
    • aggiungere decision trees??? NO (dopo!)
    • K-MEANS CLUSTERING ? NO (dopo!)
    • logistic multiple variables ? NO (too much!)

How this website was built

This is a static website built with Quarto, shared on a Github repo and served via Github Pages rendered at this link https://lulliter.github.io/R4stats/, or now (after buying a "custom domain") deployed over a custom domain registered with AWS Route 53: https://r4statistics.com/.

The main content of the website pages is contained in Quarto Markdown files (*.qmd). *.qmd files are very similar to regular Markdown (*.md) and R Markdown (*.rmd) files, except they are designed to be language agnostic.

  • Google Analytics Account under property r4biostats.com
  • Nome stream: r4statistics.com
  • URL dello stream: https://r4statistics.com
  • ID stream: 10407079869
  • ID misurazione: G-TDWG2LL0S7

Things needed to build the site

  1. Install Quarto (an open source tool that can be used from RStudio, Jupyter, CLI, etc.)... Most R users will use RStudio
  2. Install git (distributed version control software)... here some instructions
  3. Create a Github account
  4. Follow instructions/examples available here...
  5. Font-Awesome Icons downloaded in ./images/* from Font-Awsome GH repo /svgs. To use in:
  • *.md
    • ![fa-crown](images/copyright-regular.svg) (no size spec!!!)
    • <img src="images/copyright-regular.svg" width="16" height="16"> (yes size spec!!!)
  • *.qmd
    • quarto wrap {{< fa brands copyright > }}
    • r inline code r fontawesome::fa("fab fa-windows", fill = "steelblue")
  1. (An AWS account ...) but only for the custom domain part

Quirks

Little things to keep in mind (because semi-automated):

  1. I execute a script R_resources/slides_fromDrive_2_here.R from my shell file ___render_deploy.sh to copy the *.pptx files from GoogleDrive to the ./slides/ folder.

  2. I execute some shell commands (in ./___render_deploy.sh) to convert *.pptx slides to *.pdf as soon as they are ~ready...

Attributions

The content of this website is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except for the borrowed and mentioned with proper "Source:" statements.

Content

I acknowledge inputs received from these very valuable sources:

Cool Stuff you should check out

Quarto specific resources

Web input attributions

About

Split lessons and labs from R4biostats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published