lgs: lgs

View source: R/lgs.r

lgsR Documentation

lgs

Description

logistic function

Usage

lgs(x, a = 1, b = 0, par = NULL, type = "slope_inflection")

Arguments

x

numeric vector

a

slope parameter

b

point of inflection (e.g. a50)

par

named vector of parameters a and b. If this is specified it will

type

which form of the logistic function to use: "slope_intercept" for the slope-intercept form, "slope_inflection" for the slope-point-of-inflection form. For both forms, a is the slope parameter. override specifications of individual parameters

Author(s)

Nikolai Klibansky

Examples

## Not run: 
x <- 1:40
y <- lgs(x=x, a=1, b=5)
plot(x,y)

# Alternative way to specify parameters
y <- lgs(x=x, par=c(x=x, a=1, b=5))
plot(x,y)

## End(Not run)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.