next up previous index
Next: EstimationProcedure Class Up: Model Components Previous: upc_sequence Class   Index


Regression Class

The Regression class is an abstract class for user defined classes that can be used in the regression model. The class linear_regression implemented in opus_core computes outcome $ Y$ as a linear combination of given data $ X$ and coefficients $ \beta$: $ y_n = \sum_{j=1}^J
\beta_j x_{nj}$. Here, $ J$ denotes the number of variables entering the regression and $ n$ is an index for observations. The run() method takes a 2-d array of data (of size number of observations $ \times$ number of variables) and a 1-d array of coefficients as arguments and returns a 1-d array of outcome.


next up previous index
Next: EstimationProcedure Class Up: Model Components Previous: upc_sequence Class   Index
info (at) urbansim.org