Learn R Programming

SherlockHolmes (version 1.0.2)

retrieveLmStats: retrieveLmStats

Description

This function retrieves intercept, slope, r.squared, and adj.r.squared from lm()

Usage

retrieveLmStats(x, y)

Value

returns a list containing the return value of lm, intercept, slope, r.squared, and adj.r.squared

Arguments

x

is second argument to lm()

y

is first argument to lm()

Examples

Run this code
retr<-retrieveLmStats(1:10,runif(10,0,1))

Run the code above in your browser using DataLab