Description Usage Arguments Value Examples
View source: R/SL.glm.manning.R
Prediction method for SL.glm.manning
1 2 |
object |
An object of class |
newdata |
A |
... |
Other arguments (unused) |
A numeric vector of predictions
1 2 3 4 5 6 7 | # load cost data
data(cost_data)
# fit manning model
fit_glm.manning <- SL.glm.manning(Y = cost_data$totalcost, X = cost_data[, c("female", "race")],
newX = cost_data[, c("female", "race")])
# get back predictions
pred_glm.manning <- predict(fit_glm.manning$fit, newdata = cost_data[,c("female", "race")])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.