Multiple Linear Regression Example. Lm function is a basic function used in the syntax of multiple regression. Multiple linear regression example.
For example scientists might use different amounts of fertilizer and water on different fields and see how it affects crop yield. The regression model would take the following form. Heart disease lm lm heart disease biking smoking data heart data this code takes the data set heart data and calculates the effect that the independent variables biking and smoking have on the dependent variable heart disease using the equation for the linear model.
All the coefficients equal to zero.
The chemist examines 32 pieces of cotton cellulose produced at different settings of curing time curing temperature formaldehyde concentration and catalyst ratio. View week 6a pdf from data analy ana500 at mcdaniel college. It is somewhat lower than the first model. A research chemist wants to understand how several predictors are associated with the wrinkle resistance of cotton cloth.
