lin: A linear regression y=kx+a

Description Usage Arguments Value Examples

View source: R/scripts.R

Description

A linear regression y=kx+a

Usage

1
lin(x, y)

Arguments

x

x-coordinates of data points, NAs will be ignored

y

y-coordinates of data points, NAs will be ignored

Value

a list with elements:

a

intercept

k

slope

r2

R-squared

r

correlation coefficient

r.sd

standard deviation of the correlation coefficient

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.