modelprint

modelprint

Functions

Types and Values

#define MC_NAMELEN
typedef model_coeff
struct model_coeff_

Description

Functions

printmodel ()

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

Print to prn the estimates in pmod plus associated statistics.

Parameters

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), OPT_P for printing model in the context of panel diagnostics only.

 

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);

arma_extra_info ()

void
arma_extra_info (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,
                           gretl_array *names,
                           int df,
                           gretlopt opt,
                           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 string in the array names must be >= k + p, where k is the number of coefficients and p the number of additional statistics given in adds .

Parameters

cs

k x 2 matrix containing coefficients and standard errors.

 

adds

matrix containing an additional p statistics, or NULL.

 

names

array of strings containing all required names.

 

df

degrees of freedom, or 0 for asymptotic.

 

opt

may contain OPT_I fpr printing the extra stats inline.

 

prn

gretl printer.

 

Returns

0 on success, non-zero on failure.


get_printmodel_opt ()

gretlopt
get_printmodel_opt (const MODEL *pmod,
                    gretlopt opt);

print_coeff_intervals ()

int
print_coeff_intervals (const CoeffIntervals *cf,
                       PRN *prn);

Types and Values

MC_NAMELEN

#define MC_NAMELEN 32

model_coeff

typedef struct model_coeff_ model_coeff;

struct model_coeff_

struct model_coeff_ {
    double b;
    double se;
    double tval;
    double pval;
    double slope;
    double lo;
    double hi;
    int show_tval;
    int show_pval;
    int df_pval;
    int multi;
    char name[MC_NAMELEN];
};