Get y-vector or y-matrix from the optimization path.

getOptPathY(op, names, dob, eol, drop = TRUE)

Arguments

op

OptPath
Optimization path.

names

character
Names of performance measure. Default is all performance measures in path.

dob

integer
Vector of date-of-birth values to further subset the result. Only elements with a date-of-birth included in dob are selected. Default is all.

eol

integer
Vector of end-of-life values to further subset the result. Only elements with an end-of-life included in eol are selected. Default is all.

drop

(logical(1))
Return vector instead of matrix when only one y-column was selected? Default is TRUE.

Value

(numeric | matrix). The columns of the matrix are always named.