Description Usage Arguments Value
Helper function to calculate and extract the slope of a basic linear regression
relating y to x; the resulting value is used to obtain a reasonable starting guess
for the slopes of the piecewise linear functions in lag
, sat
, and
lagsat
1 | localslope(d)
|
d |
A data frame containing two columns, x and y |
Slope of the linear regression
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.