set.seed(1234)
x <- 0:20
a <- c(-2, 2, 1/2, 10, 3, 1/8)
# P6c(TRUE)
# Describes the model
# P6c(a)
# The sum of squared residuals
# P6c(a,x)
# The fitted thresholds for given parameters 'a' and times 'x'
Run the code above in your browser using DataLab