lm_stats: Returns statistics for linear regressions (e.g. slope,...

Description Usage Arguments Details Value

Description

Returns statistics for linear regressions (e.g. slope, intercept, error, etc)

Usage

1
lm_stats(d, xvar, yvar, debug = FALSE)

Arguments

d

Data frame containing at least two numeric columns

xvar

Numeric column to be used as the independant variable for the regression

yvar

Numeric column to be used as the dependant variable for the regression

Details

include some details here

Value

Returns a one-row data frame containing (at present): slope, intercept, slope standard error, intercept standard error, p value, r-squared, and number of points.


adsteen/lmstats documentation built on May 10, 2019, 7:27 a.m.