These sets of labs will introduce you to linear models. Both simple and multiple. This will also be your first introduction to the parsnip package which we will use to specify models.
biomass and plot HHV as a function of carbon.library(tidymodels)
data("biomass")
Fit a simple linear regression model to the data. With HHV as the response and carbon as the predictor. Is it a good fit?
Use the model to predict what the HHV of samples with carbon = 10, 20, ..., 80.
Plot the fitted line of the linear model.
Produce diagnostics plots. You can use plot() on the $fit object to produce some diagnostics.
Fit a linear regression model to the data. With HHV as the response and carbon and hydrogen as the predictor. How is the fit compared to the simple linear model?
Fit a linear regression model to the data. With HHV as the response and all the molecules as the predictor. How is the fit compared to the previous models?