Description Usage Arguments Details Value Note Author(s) See Also Examples
Predicted values based on the Liu regression model for scalar or vector values of biasing parameter d.
1 2 |
object |
An object of class "liu". |
newdata |
An optional data frame in which to look for variables with which to predict. |
na.action |
Function determine what should be done with missing values in |
terms |
The |
... |
Not presently used in this implementation. |
The predict.liu
function predicted values, obtained by evaluating the regression function in the frame newdata
which defaults to model.frame (object
). If newdata
is omitted the predictions are based on the data used for the fit. In that case how cases with missing values in the original fit are handled is determined by the na.action
argument of that fit. If na.action=na.omit
omitted cases will not appear in the predictions, whereas if na.action=na.exclude
they will appear (in predictions), with value NA.
predict.liu
produces a vector of prediction or a matrix of predictions for scalar or vector values of biasing parameter d.
Variables are first looked for in newdata
and then are searched for in the usual way (which will include the environment of the formula used in the fit). A warning will be given if the variables found are not of the same length as those in the newdata
if it was supplied.
Muhammad Imdad Ullah, Muhammad Aslam
Liu model fitting liu
, Liu residuals residuals.liu
, Liu PRESS press.liu
, Testing of Liu Coefficients summary.liu
1 2 3 4 | mod <- liu(y~., data = as.data.frame(Hald), d = seq(-5, 5, 0.1))
predict(mod)
predict(mod, newdata=as.data.frame(Hald[1:5, -1]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.