Emmanuel Okyere Darko
11/4/2021
This Slide contains a splines prediction on a mtcars data. Two models are used to predict Horsepower (hp) using mpg as predictor. thus a simple linear regression and splines.
The Shiny App shows the interactive difference between the two models and also takes a number from the user and predicts it
head(mtcars,3)
mpg cyl disp hp drat wt qsec vs am gear carb
Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
Please click this to use Shiny interactively shiny.io
please click for ui and server codes github link