Learn R Programming

PMmisc (version 0.1.2)

tr.log: Sigmoid function

Description

Generate sigmoid curve series, which is a specific case of logistic function, with a control of top and bottom acceleration.

Usage

tr.log(x,top,a,b)

Arguments

x

:a numeric vector

top

:a numeric value as vertical scaler

a

:a number to control top acceleration of the curve

b

:a number to control bottom acceleration of the curve

Examples

Run this code
# NOT RUN {
 sigc <- round(tr.log(seq(-3, 3, 0.1), 1, -3, 3), 3)
ts.plot(sigc)
# }

Run the code above in your browser using DataLab