+2006-04-18 Jason Stover <jhs@math.gcsu.edu>
+
+ * linreg.h: Added a pointer to a variable to store the resduals.
+
+ * linreg.c (pspp_linreg_cache_alloc): Initialize the residual
+ variable pointer to NULL.
+
2006-04-17 Jason Stover <jason@wonko.gcsu.edu>
* linreg.c (pspp_linreg_cache_free): Accept a pointer of type
*/
c->method = PSPP_LINREG_SWEEP;
c->predict = pspp_linreg_predict;
- c->residual = pspp_linreg_residual;
+ c->residual = pspp_linreg_residual; /* The procedure to comput my residuals. */
+ c->resid = NULL; /* The variable storing my residuals. */
return c;
}
*/
struct pspp_linreg_opts_struct
{
- int resid; /* Should the residuals be returned? */
-
int get_depvar_mean_std;
int *get_indep_mean_std; /* Array of booleans
dictating which
const union value **,
const union value *,
const void *, int);
+ struct variable *resid;
};
typedef struct pspp_linreg_cache_struct pspp_linreg_cache;