UserBasisRegression Class |
Namespace: Imsl.Stat
The UserBasisRegression type exposes the following members.
Name | Description | |
---|---|---|
![]() | UserBasisRegression |
Constructs a UserBasisRegression object.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetCoefficients |
Returns the regression coefficients.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Update |
Adds a new observation and associated weight to the
IRegressionBasis object.
|
Fits a linear function of the form
UserBasisRegression generalizes the concept of linear regression to user defined basis functions. The linear regression model is
This makes it easier for users to fit complex univariate models. For example, the LinearRegression class can be used to fit polynomials such as
With UserBasisRegression, these columns can be automatically generated.
For this polynomial model, the user would define a user basis function
. The UserBasisRegression class
automatically inserts the necessary values into the regression equation and
then calculates the coefficients and analysis of variance statistics.
Since the user provides a method for calculating the basis function, other more complex user basis functions are possible such as