| LinearRegressionSetRegressionData(DataFrame, IDFColumn, Boolean) Method |
Sets the regression matrix, observation vector, and intercept option to the
specified values, and recalculates the model parameters.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void SetRegressionData(
DataFrame data,
IDFColumn observations,
bool addIntercept
)
Public Sub SetRegressionData (
data As DataFrame,
observations As IDFColumn,
addIntercept As Boolean
)
public:
void SetRegressionData(
DataFrame^ data,
IDFColumn^ observations,
bool addIntercept
)
member SetRegressionData :
data : DataFrame *
observations : IDFColumn *
addIntercept : bool -> unit
Parameters
- data DataFrame
- Regression data.
- observations IDFColumn
- Column of observations.
- addIntercept Boolean
- Intercept option. Set to true if you want
the model to contain an intercept parameter that is not accounted for in the
input regression data (in the form of a leading column of ones).
See Also