modelprint

modelprint

Functions

int printmodel ()
const char * estimator_string ()
void print_model_vcv_info ()
int ols_print_anova ()
int print_coeffs ()
int print_model_from_matrices ()

Types and Values

#define MC_NAMELEN
typedef model_coeff

Object Hierarchy


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

 

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

Returns


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

Returns


print_coeffs ()

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

Returns


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 .

Parameters

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.

Types and Values

MC_NAMELEN

#define MC_NAMELEN 32


model_coeff

typedef struct model_coeff_ model_coeff;