| hanaml.LogarithmicRegression {hana.ml.r} | R Documentation |
hanaml.LogarithmicRegression is a R wrapper for PAL Bi-variate natural logarithmic regression algorithm.
hanaml.LogarithmicRegression (conn.context,
data = NULL,
key = NULL,
features = NULL,
label = NULL,
formula = NULL,
decomposition = NULL,
adjusted.r2 = NULL,
pmml.export = NULL)
conn.context |
|
data |
|
key |
|
features |
|
label |
|
formula |
|
decomposition |
Defaults to "LU". |
adjusted.r2 |
|
pmml.export |
Default to "no". |
R6Class object.
Bi-variate natural logarithmic regression is an approach to modeling the relationship between a scalar variable y and one variable denoted X. In natural logarithmic regression, data is modeled using natural logarithmic functions, and unknown model parameters are estimated from the data. Such models are called natural logarithmic models.
Return a "LogarithmicRegression" object with following values:
coefficients: DataFrame
Fitted regression coefficients.
pmml: DataFrame
Regression model content in PMML format.
Set to None if no PMML model was requested.
model : DataFrame
Model is used to save coefficients or PMML model. If PMML model is requested,
model defaults to PMML model. Otherwise, it is coefficients.
fitted: DataFrame
Predicted dependent variable values for training data.
Set to None if the training data has no row IDs.
statistics: DataFrame
Regression-related statistics, like mean square error, F-statistics, etc.
## Not run:
Training DataFrame df:
> df$Collect()
ID Y X1
1 0 10 1
2 1 80 2
3 2 130 3
4 3 160 4
5 4 180 5
6 5 190 6
7 6 192 7
Training:
> nlr <- hanaml.LogarithmicRegression(conn.context = conn,
data = df,
key = 'ID',
label = 'Y',
pmml.export='multi-row')
Output:
> nlr$coefficients
VARIABLE_NAME COEFFICIENT_VALUE
1 __PAL_INTERCEPT__ 14.8616
2 X1 98.2936
## End(Not run)