Description Usage Arguments Value Examples
View source: R/true_omega_ft.R
Nonlinear S-shaped Model
1 | w(x, logT, model)
|
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: |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.