estimate_slope: Estimate the slope of a curve within specified margins

View source: R/Boltzmann.R

estimate_slopeR Documentation

Estimate the slope of a curve within specified margins

Description

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.

Usage

estimate_slope(V, G, margins = c(0.2, 0.8))

Arguments

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).

Value

The estimated slope of the curve within the specified margins.


moritzlindner/PatchMasteR documentation built on April 30, 2024, 1:52 a.m.