Morning...
I am a new R user, and need to use linear regression using an excel file that has two columns
Have to find B0 B1,...
Looks like a textbook example:
set.seed(1) x <- sample(1:10) y <- sample(31:40) m <- lm(y ~ x, data= tibble::tibble(x, y) ) m$coefficients #> (Intercept) x #> 35.13333333 0.06666667
Created on 2019-09-10 by the reprex package (v0.3.0)
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.