/usr/include/gretl/describe.h is in libgretl1-dev 1.9.14-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | /*
* gretl -- Gnu Regression, Econometrics and Time-series Library
* Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef DESCRIBE_H
#define DESCRIBE_H
typedef struct MahalDist_ MahalDist;
typedef struct Summary_ {
gretlopt opt;
int n;
int *misscount;
int *list;
double *stats;
double *mean;
double *median;
double *sd;
double *skew;
double *xkurt;
double *low;
double *high;
double *cv;
double *perc05;
double *perc95;
double *iqr;
double sw;
double sb;
} Summary;
typedef struct FreqDist_ {
char varname[VNAMELEN]; /* for ID purposes */
int discrete; /* 1 if variable contains integers */
int dist; /* code for theoretical distribution */
int numbins; /* number of bins or intervals */
double xbar, sdx; /* mean and std dev of variable */
double *midpt; /* array of midpoints of intervals */
double *endpt; /* array of endpoints of intervals */
int *f; /* frequencies in the intervals */
double test; /* either Chi-squared statistic for testing
for a Gaussian distribution, or z statistic
for testing for Gamma dist. */
int n;
int t1, t2;
} FreqDist;
typedef struct Xtab_ {
char rvarname[VNAMELEN];
char cvarname[VNAMELEN];
int rows, cols;
double *rval, *cval;
int *rtotal, *ctotal;
int **f;
int n, missing;
int t1, t2;
const char **rlabels, **clabels;
} Xtab;
/* functions follow */
int eval_ytest (double y, GretlOp op, double test);
int gretl_minmax (int t1, int t2, const double *x,
double *min, double *max);
double gretl_min (int t1, int t2, const double *x);
double gretl_max (int t1, int t2, const double *x);
double gretl_sum (int t1, int t2, const double *x);
double gretl_mean (int t1, int t2, const double *x);
double gretl_restricted_mean (int t1, int t2, const double *x,
const double *y, GretlOp yop,
double yval);
double gretl_quantile (int t1, int t2, const double *x,
double p, gretlopt opt, int *err);
int gretl_array_quantiles (double *a, int n, double *p, int k);
double gretl_array_quantile (double *a, int n, double p);
double gretl_median (int t1, int t2, const double *x);
double gretl_sst (int t1, int t2, const double *x);
double gretl_variance (int t1, int t2, const double *x);
double gretl_restricted_variance (int t1, int t2, const double *x,
const double *y, GretlOp yop,
double yval);
double gretl_stddev (int t1, int t2, const double *x);
double gretl_restricted_stddev (int t1, int t2, const double *x,
const double *y, GretlOp yop,
double yval);
double gretl_long_run_variance (int t1, int t2, const double *x, int m);
double gretl_covar (int t1, int t2, const double *x, const double *y,
int *missing);
double gretl_corr (int t1, int t2, const double *x, const double *y,
int *missing);
double gretl_corr_rsq (int t1, int t2, const double *x, const double *y);
double gretl_skewness (int t1, int t2, const double *x);
double gretl_kurtosis (int t1, int t2, const double *x);
int gretl_moments (int t1, int t2, const double *x,
double *xbar, double *sd,
double *skew, double *kurt, int k);
double *gretl_sorted_series (int v, const DATASET *dset,
gretlopt opt, int *n,
int *err);
void free_freq (FreqDist *freq);
int freq_setup (int v, const DATASET *dset, int *pn,
double *pxmax, double *pxmin, int *nbins,
double *binwidth);
FreqDist *get_freq (int varno, const DATASET *dset,
double fmin, double fwid, int nbins, int params,
gretlopt opt, int *err);
FreqDist *get_discrete_freq (int v, const DATASET *dset,
gretlopt opt, int *err);
int freqdist (int varno, const DATASET *dset,
int *graph, gretlopt opt, PRN *prn);
gretl_matrix *freqdist_matrix (const double *x, int t1, int t2,
int *err);
int crosstab (const int *list, const DATASET *dset,
gretlopt opt, PRN *prn);
int crosstab_from_matrix (gretlopt opt, PRN *prn);
int compare_xtab_rows (const void *a, const void *b);
Xtab *single_crosstab (const int *list, const DATASET *dset,
gretlopt opt, PRN *prn, int *err);
gretl_matrix *xtab_to_matrix (const Xtab *tab);
void free_xtab (Xtab *tab);
int model_error_dist (const MODEL *pmod, DATASET *dset,
gretlopt opt, PRN *prn);
int auto_acf_order (int T);
int auto_spectrum_order (int T, gretlopt opt);
int corrgram (int varno, int order, int nparam,
DATASET *dset, gretlopt opt, PRN *prn);
int xcorrgram (const int *list, int order,
DATASET *dset, gretlopt opt, PRN *prn);
int periodogram (int varno, int width,
const DATASET *dset,
gretlopt opt, PRN *prn);
gretl_matrix *periodogram_matrix (const double *x, int t1, int t2,
int width, int *err);
int fractint (int varno, int order,
const DATASET *dset,
gretlopt opt, PRN *prn);
Summary *get_summary (const int *list, const DATASET *dset,
gretlopt opt, PRN *prn,
int *err);
Summary *get_summary_restricted (const int *list,
const DATASET *dset,
const double *rv,
gretlopt opt, PRN *prn,
int *err);
int list_summary (const int *list, const DATASET *dset,
gretlopt opt, PRN *prn);
void print_summary (const Summary *summ,
const DATASET *dset,
PRN *prn);
void print_summary_single (const Summary *s,
int digits, int places,
const DATASET *dset,
PRN *prn);
int summary_has_missing_values (const Summary *summ);
void free_summary (Summary *summ);
VMatrix *corrlist (int *list, const DATASET *dset,
gretlopt opt, int *err);
VMatrix *vmatrix_new (void);
void free_vmatrix (VMatrix *vmat);
int gretl_corrmx (int *list, const DATASET *dset,
gretlopt opt, PRN *prn);
int means_test (const int *list, const DATASET *dset,
gretlopt opt, PRN *prn);
int vars_test (const int *list, const DATASET *dset,
PRN *prn);
void print_corrmat (VMatrix *corr, const DATASET *dset, PRN *prn);
double doornik_chisq (double skew, double xkurt, int n);
int multivariate_normality_test (const gretl_matrix *E,
const gretl_matrix *Sigma,
PRN *prn);
int mahalanobis_distance (const int *list, DATASET *dset,
gretlopt opt, PRN *prn);
MahalDist *get_mahal_distances (const int *list, DATASET *dset,
gretlopt opt, PRN *prn,
int *err);
void free_mahal_dist (MahalDist *md);
const double *mahal_dist_get_distances (const MahalDist *md);
int mahal_dist_get_n (const MahalDist *md);
const int *mahal_dist_get_varlist(const MahalDist *md);
double gretl_gini (int t1, int t2, const double *x);
int gini (int varno, DATASET *dset, gretlopt opt, PRN *prn);
int shapiro_wilk (const double *x, int t1, int t2, double *W, double *pval);
int gretl_normality_test (int varno, const DATASET *dset,
gretlopt opt, PRN *prn);
gretl_matrix *acf_matrix (const double *x, int order,
const DATASET *dset, int n,
int *err);
gretl_matrix *xcf_vec (const double *x, const double *y,
int p, const DATASET *dset,
int n, int *err);
double ljung_box (int m, int t1, int t2, const double *y, int *err);
#endif /* DESCRIBE_H */
|