verify.glm {r2pmml} | R Documentation |
Enhances a "glm" object with verification data.
Description
Enhances a "glm" object with verification data.
Usage
## S3 method for class 'glm'
verify(x, newdata, precision = 1e-13, zeroThreshold = 1e-13, ...)
Arguments
x |
A "glm" object. |
newdata |
The verification dataset. |
precision |
Maximal relative error. |
zeroThreshold |
Maximal absolute error near the zero value. |
... |
Further arguments. |
Examples
library("mlbench")
library("r2pmml")
data(BostonHousing)
housing.glm = glm(medv ~ ., data = BostonHousing, family = "gaussian")
housing.glm = verify(housing.glm, newdata = BostonHousing[sample(nrow(BostonHousing), 10), ])
r2pmml(housing.glm, file.path(tempdir(), "Housing-GLM-verified.pmml"))
[Package r2pmml version 0.28.0 Index]