gretl_restrict

gretl_restrict —

Synopsis




typedef     gretl_restriction_set;
gretl_restriction_set* restriction_set_start
                                            (const char *line,
                                             gretlopt opt,
                                             int *err);
gretl_restriction_set* cross_restriction_set_start
                                            (const char *line,
                                             gretl_equation_system *sys);
gretl_restriction_set* var_restriction_set_start
                                            (const char *line,
                                             GRETL_VAR *var);
gretl_restriction_set* eqn_restriction_set_start
                                            (const char *line,
                                             MODEL *pmod,
                                             gretlopt opt);
int         restriction_set_parse_line      (gretl_restriction_set *rset,
                                             const char *line,
                                             const DATAINFO *pdinfo);
int         gretl_restriction_set_finalize  (gretl_restriction_set *rset,
                                             const double **Z,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);
void        destroy_restriction_set         (gretl_restriction_set *rset);
int         gretl_sum_test                  (const int *list,
                                             MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);
int         gretl_restriction_set_boot_params
                                            (int B,
                                             gretlopt opt);
void        gretl_restriction_get_boot_params
                                            (int *pB,
                                             gretlopt *popt);

Description

Details

gretl_restriction_set

typedef struct restriction_set_ gretl_restriction_set;


restriction_set_start ()

gretl_restriction_set* restriction_set_start
                                            (const char *line,
                                             gretlopt opt,
                                             int *err);

line :
opt :
err :
Returns :

cross_restriction_set_start ()

gretl_restriction_set* cross_restriction_set_start
                                            (const char *line,
                                             gretl_equation_system *sys);

line :
sys :
Returns :

var_restriction_set_start ()

gretl_restriction_set* var_restriction_set_start
                                            (const char *line,
                                             GRETL_VAR *var);

line :
var :
Returns :

eqn_restriction_set_start ()

gretl_restriction_set* eqn_restriction_set_start
                                            (const char *line,
                                             MODEL *pmod,
                                             gretlopt opt);

line :
pmod :
opt :
Returns :

restriction_set_parse_line ()

int         restriction_set_parse_line      (gretl_restriction_set *rset,
                                             const char *line,
                                             const DATAINFO *pdinfo);

rset :
line :
pdinfo :
Returns :

gretl_restriction_set_finalize ()

int         gretl_restriction_set_finalize  (gretl_restriction_set *rset,
                                             const double **Z,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

rset :
Z :
pdinfo :
prn :
Returns :

destroy_restriction_set ()

void        destroy_restriction_set         (gretl_restriction_set *rset);

rset :

gretl_sum_test ()

int         gretl_sum_test                  (const int *list,
                                             MODEL *pmod,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

Calculates the sum of the coefficients, relative to the given model, for the variables given in list. Prints this estimate along with its standard error.

list : list of variables to use.
pmod : pointer to model.
pdinfo : information on the data set.
prn : gretl printing struct.
Returns : 0 on successful completion, error code on error.

gretl_restriction_set_boot_params ()

int         gretl_restriction_set_boot_params
                                            (int B,
                                             gretlopt opt);

B :
opt :
Returns :

gretl_restriction_get_boot_params ()

void        gretl_restriction_get_boot_params
                                            (int *pB,
                                             gretlopt *popt);

pB :
popt :