[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/lib/linreg/pspp_linreg.h
From: |
Jason H Stover |
Subject: |
[Pspp-cvs] Changes to pspp/lib/linreg/pspp_linreg.h |
Date: |
Fri, 28 Oct 2005 16:52:09 -0400 |
Index: pspp/lib/linreg/pspp_linreg.h
diff -u pspp/lib/linreg/pspp_linreg.h:1.4 pspp/lib/linreg/pspp_linreg.h:1.5
--- pspp/lib/linreg/pspp_linreg.h:1.4 Wed Oct 26 19:29:18 2005
+++ pspp/lib/linreg/pspp_linreg.h Fri Oct 28 20:52:08 2005
@@ -63,23 +63,36 @@
/*
Cache for the relevant data from the model. There are several
- members which the caller may not use, and which could use a lot of
+ members which the caller might not use, and which could use a lot of
storage. Therefore non-essential members of the struct will be
allocated only when requested.
*/
+struct pspp_linreg_coeff
+{
+ double estimate; /* Estimated coefficient. */
+ const struct variable *v; /* The variable associated with this coefficient.
+ The calling function should supply the variable
+ when it creates the design matrix. The estimation
+ procedure ignores the struct variable *. It is
here so
+ the caller can match parameters with relevant
+ variables.
+ */
+};
struct pspp_linreg_cache_struct
{
int n_obs; /* Number of observations. */
int n_indeps; /* Number of independent variables. */
+ int n_coeffs;
/*
- The var structs are ignored during estimation.
- They are here so the calling procedures can
- find the variables used in the model.
+ The variable struct is ignored during estimation.
+ It is here so the calling procedure can
+ find the variable used in the model.
*/
- struct var *depvar;
- struct var **indepvar;
+ const struct variable *depvar;
+
gsl_vector *residuals;
+ struct pspp_linreg_coeff *coeff;
gsl_vector *param_estimates;
int method; /* Method to use to estimate parameters. */
/*