Description Usage Arguments Value Examples
View source: R/predict_model.R
predict.stAirPol.model
| 1 2 | 
| spT.model | a model as returned by fit_sp_model | 
| newdata | a dataset with informations of the covariable | 
| training_set | an object generated by get_test_and_training_set, if those an object is delivered, the newdata argument will reduced to the in training_set specified test sensors. | 
| ... | additional arguments | 
the newdata with added columns of the prediction calculations
| 1 2 3 4 5 6 7 8 9 | data("mini_dataset")
mini_dataset <- clean_model_data(mini_dataset)
formula = value ~ humi + temp + rainhist + windhist +
  trafficvol + log(sensor_age)
training_set <- get_test_and_training_set(mini_dataset, sampel_size = 0.75,
                                          random.seed = 220292)
model.gp <- fit_sp_model(data = mini_dataset, formula = formula,
                         model = 'GP', training_set = training_set)
pred.gp <- predict(model.gp, mini_dataset, training_set)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.