(8) Modelling tips and tricks (metrics, residuals, training vs testing)

Read full text
Authors: Jordan Grigor
Cited by: 0

Abstract

(8) Modelling tips and tricks (R2, AIC, residuals, splitting and predictions)Hi there, this is the script for my eigth video in a YouTube playlist that will help you get started in RStudio with data analysis, visualisations, writing reports, making apps and much more.This one shows continues on from video (7) where we made a straight line model. Here I show you two metrics to use for checking how good your model is, and briefly examine the residuals, which tells us if we need to reconsider our model. Turns out we do! Then I show you how to split data into training and testing data, make our model from the former, and predict for the latter.I used the teengamb dataframe from the faraway library, and recorded this using Loom.YouTube playlist: https://youtube.com/playlist?list=PLOmLad--a10CEC07_RyjuDmmOQGQh3OXc&si=tzhZjq1pF1Rxs0blMy website: https://jordycoding.com/💻📊📈#scotland #work #RStudio #coding #data #jordycoding #science #ProgrammingBasics #dataanalysis #DataScience

Publication details

Journal / source
Figshare
Publication date
1 January 2026