predict.hxlr | R Documentation |
Obtains various types of predictions/fitted values for heteroscedastic extended logistic regression (HXLR) models.
## S3 method for class 'hxlr'
predict(object, newdata = NULL, type = c("class", "probability",
"cumprob", "location", "scale"), thresholds = object$thresholds,
na.action = na.pass, ...)
## S3 method for class 'hxlr'
fitted(object, type = c("class", "probability",
"cumprob", "location", "scale"), ...)
object |
an object of class |
newdata |
an optional data frame in which to look for variables with which to predict. |
type |
type of prediction: |
thresholds |
optional thresholds used for defining the thresholds for
types |
na.action |
A function which indicates what should happen when the data
contain |
... |
further arguments passed to or from other methods. |
For type "prob"
a matrix with number of intervals (= number of
thresholds + 1) columns is produced. Each row corresponds to a row in newdata
and contains the predicted probabilities to fall in the corresponding interval.
For type "cumprob"
a matrix with number of thresholds columns is
produced. Each row corresponds to a row in newdata
and contains the
predicted probabilities to fall below the corresponding threshold.
For types "class"
, "location"
, and "scale"
a vector is
returned respectively with either the most probable categories ("class"
)
or the location ("location"
) or scale (scale
) of the latent
distribution.
hxlr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.