Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
[SerializableAttribute] public class UserBasisRegression |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class UserBasisRegression |
Visual C++ |
---|
[SerializableAttribute] public ref class UserBasisRegression |
Remarks
Fits a linear function of the form
, where are the user basis functions evaluated at index values is the intercept, are the coefficients associated with the basis functions, and is the random error associated with y. The coefficients are determined by least squares. DescriptionUserBasisRegression generalizes the concept of linear regression to user defined basis functions. The linear regression model is
, where are the k independent variables. UserBasisRegression generalizes this concept by setting , where is any user defined function of .This makes it easier for users to fit complex univariate models. For example, the LinearRegression class can be used to fit polynomials such as
, but this requires an input matrix where the ith column of that array contains the values of .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
. In this case, nBasis=2, , and .