Difference between revisions of "Worksheets/Week2"
Jump to navigation
Jump to search
Kevin Dunn (talk | contribs) |
Kevin Dunn (talk | contribs) |
||
Line 31: | Line 31: | ||
interaction.plot(T, F, y) | interaction.plot(T, F, y) | ||
interaction.plot(F, T, y) | interaction.plot(F, T, y) | ||
# Make a prediction with this model: | |||
xT = -1 # corresponds to 110 minutes | |||
xF = -1 # corresponds to 20 grams of fat | |||
y.hat <- predict(model_crispy, data.frame(T = xT, F = xF)) | |||
paste0('Predicted value is: ', y.hat, ' crispiness.') | |||
</code> | </code> | ||
</div></html> | </div></html> |
Revision as of 08:19, 26 September 2019
A baked food product:
- T = time used to bake the product
- F = quantity of fat added