| verify.glm | R Documentation | 
Enhances a "glm" object with verification data.
## S3 method for class 'glm'
verify(x, newdata, precision = 1e-13, zeroThreshold = 1e-13, ...)
| x | A "glm" object. | 
| newdata | The verification dataset. | 
| precision | Maximal relative error. | 
| zeroThreshold | Maximal absolute error near the zero value. | 
| ... | Further arguments. | 
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.