Usage
shape(x, ymat, infocrit = "CIC", flat = TRUE, dec = TRUE, jp = TRUE,
invee = TRUE, vee = TRUE, inc = TRUE, db = TRUE, nsim = 1e+3,
edf0 = NULL, get.edf0 = FALSE, random = FALSE, msg = TRUE)
Arguments
x
A $n$ by $1$ predictor vector, for example, years.
ymat
A $n$ by $N$ matrix whose columns are response vectors corresponding to x, for example, Landsat signals.
infocrit
The criterion used to select the best shape for a scatterplot. It can either be the Bayes information criterion (BIC) or the cone information criterion (CIC).
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 shape choice; otherwise, there is no such a shape option. The routine is usually slower when there is a double-jump shape choice than it is when there is no such a choice.
nsim
Number of simulations used to get the edf0 vector. The default is nsim = 1e+3. See references in this section
for more details about edf0.
edf0
The edf0 given by the user. When $\bold{x}$ is an equally spaced vector whose number of elements is between $20$ and $40$. The user doesn't need to provide an edf0 vector; otherwise, the user has to set get.edf0 to be TRUE such that the shape routine will
get.edf0
A logical flag. When $\bold{x}$ is not an equally spaced vector whose number of elements is between $20$ and $40$. The user has to set get.edf0 to be TRUE such that the shape routine will simulate an edf0 vector, or the user can choose to simulate an edf0
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