summary
The method is currently under construction but some functionalities are available.
# S3 method for speedglm
predict(object, newdata, type = c("link", "response"),
na.action = na.pass, ...)
a vector of predictions.
an object of class 'speedlgm'.
An optional data frame with new data or the original data.
Type of prediction.
function determining what should be done with missing values in newdata
.
further optional arguments
Tomer Kalimi and Marco Enea
If newdata
is omitted prediction are based on the data used for the fit only if argument fitted
was previously set to TRUE
in the speedglm object.
Currently the method does not work for function shglm
.
speedglm
data(data1)
mod <- speedglm(y~x1+x2+factor(fat1), data=data1, family=Gamma(log), fitted=TRUE)
predict(mod)
Run the code above in your browser using DataLab