predict.LogarithmicRegression.RdSimilar to other predict methods, this function predicts fitted values from a fitted "LogarithmicRegression" object.
# S3 method for LogarithmicRegression predict( model, data, key, features = NULL, thread.ratio = NULL, model.format = NULL )
| model |
|
|---|---|
| data |
|
| key |
|
| features |
|
| thread.ratio |
|
| model.format |
|
S3 methods
Predicted values are returned as a DataFrame, structured as follows.
ID: with same name and type as data's ID column.
VALUE: type DOUBLE, representing predicted values.
DataFrame data2 for prediction:
> data2$Collect()
ID X1
1 0 1
2 1 2
3 2 3
4 3 4
5 4 5
6 5 6
7 6 7
Perform prediction based on a "LogarithmicRegression" Object nlr:
> predict(nlr, data2, key = "ID")
ID VALUE
1 0 14.86160
2 1 82.99353
3 2 122.84816
4 3 151.12546
5 4 173.05905
6 5 190.98009
7 6 206.13211