pedersen-fisheries-lab / one-day-gam-workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction to GAMs workshop

A short course on how to fit, plot, and evaluate GAMs

The course website URL available at pedersen-fisheries-lab.github.io/one-day-gam-workshop/

Setup

  • You will need to install R and I recommend using RStudio. The latest version of R can be downloaded here. RStudio is an application (an integrated development environment or IDE) that facilitates the use of R and offers a number of nice additional features. It can be downloaded here. You will need the free Desktop version for your computer.

  • Download the course materials as a ZIP file here. Alternatively, if you have the usethis, R package, running the following command will download the course materials and open them:

    usethis::use_course('pedersen-fisheries-lab/one-day-gam-workshop')
    
  • Install the R packages required for this course by running the following line of code your R console:

    install.packages(c("dplyr", "ggplot2", "remotes", "mgcv", "tidyr"))
    remotes::install_github("gavinsimpson/gratia")
    

Day 1

Introduction slides

Day 1 slides

Day 1 script

Day 1 solutions

Day 2

Day 2 slides

Day 2 script

Day 3

Day 3 slides

Day 3 script

About

License:MIT License


Languages

Language:HTML 66.3%Language:R 20.0%Language:JavaScript 7.1%Language:CSS 6.5%