projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed use of coefficient 0 as intercept; removed subcommand EXPORT.
[pspp-builds.git]
/
src
/
math
/
linreg
/
linreg.h
diff --git
a/src/math/linreg/linreg.h
b/src/math/linreg/linreg.h
index d09752a21b50e272663039fcdcedb9b0c26480af..a7d408af56bde0c605c648963882545d9bec2967 100644
(file)
--- a/
src/math/linreg/linreg.h
+++ b/
src/math/linreg/linreg.h
@@
-95,7
+95,8
@@
struct pspp_linreg_cache_struct
{
int n_obs; /* Number of observations. */
int n_indeps; /* Number of independent variables. */
{
int n_obs; /* Number of observations. */
int n_indeps; /* Number of independent variables. */
- int n_coeffs;
+ int n_coeffs; /* The intercept is not considered a
+ coefficient here. */
/*
The variable struct is ignored during estimation. It is here so
/*
The variable struct is ignored during estimation. It is here so
@@
-105,6
+106,7
@@
struct pspp_linreg_cache_struct
gsl_vector *residuals;
struct pspp_coeff **coeff;
gsl_vector *residuals;
struct pspp_coeff **coeff;
+ double intercept;
int method; /* Method to use to estimate parameters. */
/*
Means and standard deviations of the variables.
int method; /* Method to use to estimate parameters. */
/*
Means and standard deviations of the variables.