Summarize data (for debugging).
summarize_input(x, y, w, i, j, skip)
x | NumericVector, expanatory variable. |
---|---|
y | NumericVector, 0/1 values to fit. |
w | NumericVector, weights (required, positive). |
i | integer, first index (inclusive). |
j | integer, last index (inclusive). |
skip | integer, index to skip (-1 to not skip). |
summary list
costs <- matrix(c(1.5, NA ,NA ,1 ,0 , NA, 5, -1, 1), nrow = 3) solve_interval_partition(costs, nrow(costs))#> [1] 1 2 4