![]() |
|
| #define apop_estimate_r_squared | ( | in | ) |
A synonym for apop_estimate_coefficient_of_determination, q.v.
| apop_data* apop_estimate_coefficient_of_determination | ( | apop_model * | in | ) |
Good ol'
. Let
be the dependent variable,
the residual,
the number of data points, and
the number of independent vars (including the constant). Returns an apop_data set with the following entries (in the vector element):

Internally allocates (and frees) a vector the size of your data set.
| in | The estimate. I need residuals to have been calculated, and the first column of in->data needs to be the dependent variable. |
apop_data table with the following fields: | in | An estimated model. I use the expected table (which gives the expected value and residual for each observation), so if you had explicitly set want_expected_value=0 when doing your estimation, you'll have to redo the estimation without that. |