Description Usage Arguments Value Examples
View source: R/constrained-polynomial-model.R
Estimates univariate polynomials with parameters from a closed convex set. Some examples are shape constraints (e.g. montonicity, convexity) or simply linear parameter constraints such as β [1] >= 0.
1 2 |
formula |
an object of class |
data |
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from |
subset |
NOT YET IMPLEMENTED an optional vector specifying a subset of observations to be used in the fitting process. |
weights |
NOT YET IMPLEMENTED. |
na.action |
a function which indicates what should happen when the data contain NAs. The default is set by the na.action setting of options, and is na.fail if that is unset. The 'factory-fresh' default is na.omit. Another possible value is NULL, no action. Value na.exclude can be useful. |
degree |
degree of polynomial to be fit. |
constraint |
an optional character string of "monotone" ("convex" coming soon). |
oracle |
an optional function of class |
start |
intial value of COLS optimisation. |
c_region |
the applicable region for the constraint, default is |
... |
arguments to be passed to |
Constrained regression model with class creg
. Currently a named list including objects: beta
(parameter vector), fitted.values
, residuals
, and RSS
.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.