Slope of linear regression

slope(x, y)

Arguments

x

a numeric vector for x

y

a numeric vector for y

Value

Slope of linear regression

Examples

slope(runif(10), runif(10))
#> [1] -0.3418845