w: Nonlinear S-shaped Model

Description Usage Arguments Value Examples

View source: R/true_omega_ft.R

Description

Nonlinear S-shaped Model

Usage

1
w(x, logT, model)

Arguments

x

a vector of time points. It can be any length of a vector.

logT

a parameter for an inflection point.

model

a character string for a nonlinear model: "logist" or "arctan".

Value

a vector of response values corresponding a vector of time points x, whose trajecotry follows an S-shape. Two deterministic "S"-shaped functions are the logstic and the aractangent functions and user can choose either one.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(HDChangePoint)


## Generate a vector of time points and an inflection point in the domain of the time points
x<-seq(-0.5, 0.5, by=0.1); logT<-0;

## Obtain an S-shaped function under the logistic model
out<-w(x, logT, model="logist");
plot(out)

## Obtain an S-shaped function under the arctangent model
out1<-w(x, logT, model="arctan");
plot(out1)

unkyunglee/HDChangePoint documentation built on Nov. 27, 2021, 2:57 p.m.