modelprint

modelprint

Synopsis

#define             MC_NAMELEN
typedef             model_coeff;
int                 printmodel                          (MODEL *pmod,
                                                         const DATASET *dset,
                                                         gretlopt opt,
                                                         PRN *prn);
const char *        estimator_string                    (const MODEL *pmod,
                                                         PRN *prn);
void                print_model_vcv_info                (const MODEL *pmod,
                                                         const DATASET *dset,
                                                         PRN *prn);
int                 ols_print_anova                     (const MODEL *pmod,
                                                         PRN *prn);
int                 print_coeffs                        (const double *b,
                                                         const double *se,
                                                         const char **names,
                                                         int nc,
                                                         int df,
                                                         int ci,
                                                         PRN *prn);
int                 print_model_from_matrices           (const gretl_matrix *cs,
                                                         const gretl_matrix *adds,
                                                         const char *s,
                                                         PRN *prn);

Description

Details

MC_NAMELEN

#define MC_NAMELEN 32


model_coeff

typedef struct model_coeff_ model_coeff;


printmodel ()

int                 printmodel                          (MODEL *pmod,
                                                         const DATASET *dset,
                                                         gretlopt opt,
                                                         PRN *prn);

Print to prn the estimates in pmod plus associated statistics.

pmod :

pointer to gretl model.

dset :

data information struct.

opt :

may contain OPT_O to print covariance matrix, OPT_S to get a "simple" print (just coefficients and standard errors).

prn :

gretl printing struct.

Returns :

0 on success, 1 if some of the values to print were NaN.

estimator_string ()

const char *        estimator_string                    (const MODEL *pmod,
                                                         PRN *prn);


print_model_vcv_info ()

void                print_model_vcv_info                (const MODEL *pmod,
                                                         const DATASET *dset,
                                                         PRN *prn);


ols_print_anova ()

int                 ols_print_anova                     (const MODEL *pmod,
                                                         PRN *prn);


print_coeffs ()

int                 print_coeffs                        (const double *b,
                                                         const double *se,
                                                         const char **names,
                                                         int nc,
                                                         int df,
                                                         int ci,
                                                         PRN *prn);


print_model_from_matrices ()

int                 print_model_from_matrices           (const gretl_matrix *cs,
                                                         const gretl_matrix *adds,
                                                         const char *s,
                                                         PRN *prn);

Prints to prn the coefficient table and optional additional statistics for a model estimated "by hand". Mainly useful for user-written functions.

The number of space-separated "words" in the string s must be k + p, where k is the number of coefficients and p the number of additional statistics given in adds.

cs :

k x 2 matrix containing coefficients and standard errors.

adds :

matrix containing an additional p statistics, or NULL.

s :

string containing all required names, space-separated.

prn :

gretl printer.

Returns :

0 on success, non-zero on failure.