estimate_slope | R Documentation |
This function estimates the slope of a curve represented by two vectors, V and G, within the specified margins. It calculates the difference in V values corresponding to the range of G values within the margins, and divides it by the difference in the margins to estimate the slope.
estimate_slope(V, G, margins = c(0.2, 0.8))
V |
A numeric vector representing the independent variable. |
G |
A numeric vector representing the dependent variable. |
margins |
A numeric vector specifying the lower and upper margins for G values. The default is c(0.2, 0.8). |
The estimated slope of the curve within the specified margins.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.