Description Usage Arguments Value Examples
Second derivative of the arctangent model function for the parametric nonlinear mixed effects model (nlme) procedure
1 | arctan_second_deriv_ft(gam1, gam2, gam3, logage)
|
gam1 |
a scale parameter. |
gam2 |
a parameter for an inflection point. |
gam3 |
a parameter, which determines steepness of the arctangent model. |
logage |
a vector of time points (log-scaled ages), which is generated around |
a vector of the second derivative of the arctangent function with respect to (logage-gam2).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(HDChangePoint)
## Specify parameters
gam1=2.45/pi
gam2=0
gam3=pi/1.1
## Specify the time points (log-scaled ages)
logage<-seq(-0.5, 0.5, by=0.1)
## Obtain a vector of the second derivative of the arctangent model
arct_sec_derv<-arctan_second_deriv_ft(gam1=2.45/pi, gam2=0, gam3=pi/1.1, logage=logage)
## Plot the second derivative of the arctangent model
plot(logage, arct_sec_derv, type='l')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.