Vector of step sizes at each observation point for each vector, concatentated as a single vector.
x
Matrix of observations coefchain corresponds to.
intercept
Intercept value. i.e. value of mean(f(x)).
sortedx
x sorted in each column.
names
Names to be assigned to covariates.
pinters
The values of the component functions at the left ends of each range.
...
Additional variables to be stored in the final object.
Details
This function generates a multistep object, to represent a function that is the sum of right-continuous step functions on each input. Internally, the function is stored in a sparse format.
sortedx and pinters are calculated, if not provided.
Multistep objects may be plotted. They may also be evaluated at a particular vector value, or matrix of values, through the * operator or the predict function.