Learn R Programming

RcppDynProg (version 0.2.1)

summarize_input: Summarize data (for debugging).

Description

Summarize data (for debugging).

Usage

summarize_input(x, y, w, i, j, skip)

Value

summary list

Arguments

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).

Examples

Run this code

costs <- matrix(c(1.5, NA ,NA ,1 ,0 , NA, 5, -1, 1), nrow = 3)
solve_interval_partition(costs, nrow(costs))

Run the code above in your browser using DataLab