localslope: Local Slope function

Description Usage Arguments Value

Description

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

Usage

1

Arguments

d

A data frame containing two columns, x and y

Value

Slope of the linear regression


ctkremer/growthTools documentation built on July 27, 2021, 4:19 p.m.