Description Usage Arguments Value Examples
picor
looks for a piecewise-constant function as a regression
function. The regression is necessarily univariate.
This is essentially a wrapper for rpart
(regression
tree) and isoreg
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
formula |
formula of the model to be fitted. |
data |
optional data frame. |
method |
character. If |
min_length |
integer. The minimal distance between two consecutive knots. |
... |
Additional arguments to be passed to |
object, x, Fn |
An object of class |
newdata |
data.frame to be passed to the |
An object of class "picor"
, which is a list composed of the
following elements:
formula: the formula passed as an argument;
x: the numeric vector of predictors;
y: the numeric vector of responses;
knots: a numeric vector (possibly of length 0), the knots found;
values: a numeric vector (of length length(knots)+1
),
the constant values taken by the regression function between the knots.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.