powered by
This function retrieves intercept, slope, r.squared, and adj.r.squared from lm()
retrieveLmStats(x, y)
returns a list containing the return value of lm, intercept, slope, r.squared, and adj.r.squared
is second argument to lm()
is first argument to lm()
retr<-retrieveLmStats(1:10,runif(10,0,1))
Run the code above in your browser using DataLab