Fit double hinge models.
double.hinge(x, y, lower.y = NULL, upper.y = NULL,
var.type = c("none", "bootstrap"), ci.bootstrap.size =
1000, alpha = 0.05, save.boot = TRUE, ncpus = 1,
boot.ci.type=c("percentile","symmetric"))# S3 method for double.hinge
plot (x, which = NULL, xlim = NULL,
lwd = 2, lcol = "red",
lty = 1, add.points = TRUE, add.ci = TRUE, breaks =
20, mark.chngpt = FALSE, xlab = NULL, ylab = NULL,
...)
# S3 method for double.hinge
fitted (object, ...)
# S3 method for double.hinge
residuals (object, ...)
x
x
y
lower.y
upper.y
var.type
var.type
ci.bootstrap.size
alpha
save.boot
ncpus
ncpus
ncpus
x
x
x
x
x
x
x
x
x
arguments passed along
If lower.y and upper.y are not supplied, min(y) is taken as the function value when x is less than or equal to the first threshold, and max(y) is taken as the function value when x is greater than or equal to the second threshold.
If the function is expected to be decreasing between the two thresholds, lower.y and upper.y should be supplied to ensure the correct fit.
mse is residual sum of squares