RegressionData

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

responseName

an optional name for the response variable. The default is Y

predictorNames

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))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val hasIntercept: Boolean = true
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

The data associated with the named predictor. The name must exist as a predictor name.

Link copied to clipboard
fun toDataFrame(): DataFrame<Any>
Link copied to clipboard
open override fun toString(): String