Usage
getedf0(x, flat = TRUE, dec = TRUE, jp = TRUE, invee = TRUE,
vee = TRUE, inc = TRUE, db = TRUE, nsim = 1e+3, random = FALSE, msg = TRUE)
Arguments
x
A $n$ by $1$ predictor vector, for example, years.
flat
A logical flag. If it is TRUE, there is a flat shape choice; otherwise, there is no such a shape option.
dec
A logical flag. If it is TRUE, there is a decreasing shape choice; otherwise, there is no such a shape option.
jp
A logical flag. If it is TRUE, there is a one-jump shape choice; otherwise, there is no such a shape option.
invee
A logical flag. If it is TRUE, there is an inverted-vee shape choice; otherwise, there is no such a shape option.
vee
A logical flag. If it is TRUE, there is a vee shape choice; otherwise, there is no such a shape option.
inc
A logical flag. If it is TRUE, there is an increasing shape choice; otherwise, there is no such a shape option.
db
A logical flag. If it is TRUE, there is a double-jump option; otherwise, there is no such a shape option.
nsim
Number of simulations used to get the edf0 vector. The default is nsim = 1e+3.
random
A parameter used by the maintainer to test if each shape option can be both included and excluded.
msg
A logical flag. If msg is TRUE, then a warning message will be printed when there is a non-convergence problem; otherwise no warning message will be printed. The default is msg = TRUE