1 /* 2 * gretl -- Gnu Regression, Econometrics and Time-series Library 3 * Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 */ 19 20 /* modelprint.h for gretl */ 21 22 #ifndef MODELPRINT_H 23 #define MODELPRINT_H 24 25 #define MC_NAMELEN 32 26 27 typedef struct model_coeff_ model_coeff; 28 29 struct model_coeff_ { 30 double b; 31 double se; 32 double tval; 33 double pval; 34 double slope; 35 double lo; 36 double hi; 37 int show_tval; 38 int show_pval; 39 int df_pval; 40 int multi; 41 char name[MC_NAMELEN]; 42 }; 43 44 int printmodel (MODEL *pmod, const DATASET *dset, gretlopt opt, 45 PRN *prn); 46 47 const char *estimator_string (const MODEL *pmod, PRN *prn); 48 49 void print_model_vcv_info (const MODEL *pmod, const DATASET *dset, 50 PRN *prn); 51 52 int ols_print_anova (const MODEL *pmod, PRN *prn); 53 54 int print_coeffs (const double *b, 55 const double *se, 56 const char **names, 57 int nc, int df, int ci, 58 PRN *prn); 59 60 int print_model_from_matrices (const gretl_matrix *cs, 61 const gretl_matrix *adds, 62 gretl_array *names, int df, 63 gretlopt opt, PRN *prn); 64 65 gretlopt get_printmodel_opt (const MODEL *pmod, 66 gretlopt opt); 67 68 #endif /* MODELPRINT_H */ 69