arctanf: Arctanget model for the parametric nonlinear mixed effects...

Description Usage Arguments Value Examples

View source: R/arctan_nlme.R

Description

Arctanget model for the parametric nonlinear mixed effects model (nlme) procedure

Usage

1
arctanf(gam1, gam2, gam3, gam4, logage)

Arguments

gam1

a scale parameter.

gam2

a parameter for an inflection point.

gam3

a parameter, which determines steepness of the arctangent model.

gam4

a vertical shift parameter that can shift the maximum and the minimum of the function values.

logage

a vector of time points (log-scaled ages), which is generated around gam2. It can be an any length of vector.

Value

a vector of response variables under the deterministic arctangent model, whose length is the same as the length of logage.

Examples

 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
gam4=0.8

## Specify the time points (log-scaled ages)
logage<-seq(-0.5, 0.5, by=0.1)

## Obtain a vector of response variables when parametric NLME assumes the arctangent model
arctanft<-arctanf(2.45/pi, 0, pi/1.1, 0.8, logage)

## Plot the S-shaped curve under the arctangent model
plot(logage, arctanft, type='l')

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