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

Creates linear models of a single independant variable

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/subspec documentation built on May 10, 2019, 7:27 a.m.