Regression Data
data class RegressionData(val response: DoubleArray, val data: Array<DoubleArray>, val hasIntercept: Boolean = true, var responseName: String = "Y", val predictorNames: List<String> = makePredictorNames(data))
The response is an n by 1 array of the data, where n is the number of observations for a response variable. The data is an n by k matrix of the data for the regression, where k is the number of regression coefficients and n is the number of observations. This data should not include a column of 1's for estimating an intercept term. The rows of the array represent the predictor values associated with each observation. The array must be rectangular. That is, each row has the same number of columns.
Parameters
response Name
an optional name for the response variable. The default is Y
predictor Names
a list of names to associate with the predictors. The default is X_1, X_2,..., X_k
Constructors
Link copied to clipboard
constructor(response: DoubleArray, data: Array<DoubleArray>, hasIntercept: Boolean = true, responseName: String = "Y", predictorNames: List<String> = makePredictorNames(data))