Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

R may return a line that has no slope if all the data points in the dataset have the same value for the independent variable, or if there is no variation in the dependent variable for different values of the independent variable. In these cases, the best fit line will be a horizontal line with no slope.