corr_stats: Returns useful parameters of a linear model

Description Usage Arguments Value

Description

Creates a linear model of the form $y=mx+b$ and returns useful parameters, including: * slope * standard error of the slope * intercept * standard error of the intercept * p value * number of points Tries hard to catch errors and return NA in those cases. This is an early version of 'lm_stats' in the **enzalyze** package: github.com/adsteen/enzalyze

Usage

1
corr_stats(d, xvar, yvar)

Arguments

d

Data frame containing the data in question

xvar

Name of the x variable (as character)

yvar

Name of the y variable (as character)

Value

A 1-row data frame (no, it makes no sense to do it this way.)


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