gretl_panel

gretl_panel —

Synopsis




int         panel_diagnostics               (MODEL *pmod,
                                             double ***pZ,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);
MODEL       real_panel_model                (const int *list,
                                             double ***pZ,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);
MODEL       panel_wls_by_unit               (const int *list,
                                             double ***pZ,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);
int         panel_autocorr_test             (MODEL *pmod,
                                             int order,
                                             double **Z,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);
int         panel_tsls_robust_vcv           (MODEL *pmod,
                                             const double **Z,
                                             const DATAINFO *pdinfo);
int         set_panel_structure_from_vars   (int uv,
                                             int tv,
                                             double **Z,
                                             DATAINFO *pdinfo);
int         set_panel_structure_from_line   (const char *line,
                                             double **Z,
                                             DATAINFO *pdinfo);
int         switch_panel_orientation        (double **Z,
                                             DATAINFO *pdinfo);
int         balanced_panel                  (const DATAINFO *pdinfo);
int*        panel_list_omit                 (const MODEL *orig,
                                             const int *drop,
                                             int *err);
int*        panel_list_add                  (const MODEL *orig,
                                             const int *add,
                                             int *err);
int         panel_variance_info             (const double *x,
                                             const DATAINFO *pdinfo,
                                             double xbar,
                                             double *psw,
                                             double *psb);
int         panel_obs_info                  (const int *list,
                                             const double **Z,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

Description

Details

panel_diagnostics ()

int         panel_diagnostics               (MODEL *pmod,
                                             double ***pZ,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);

pmod :
pZ :
pdinfo :
opt :
prn :
Returns :

real_panel_model ()

MODEL       real_panel_model                (const int *list,
                                             double ***pZ,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);

list :
pZ :
pdinfo :
opt :
prn :
Returns :

panel_wls_by_unit ()

MODEL       panel_wls_by_unit               (const int *list,
                                             double ***pZ,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);

list :
pZ :
pdinfo :
opt :
prn :
Returns :

panel_autocorr_test ()

int         panel_autocorr_test             (MODEL *pmod,
                                             int order,
                                             double **Z,
                                             DATAINFO *pdinfo,
                                             gretlopt opt,
                                             PRN *prn);

pmod :
order :
Z :
pdinfo :
opt :
prn :
Returns :

panel_tsls_robust_vcv ()

int         panel_tsls_robust_vcv           (MODEL *pmod,
                                             const double **Z,
                                             const DATAINFO *pdinfo);

pmod :
Z :
pdinfo :
Returns :

set_panel_structure_from_vars ()

int         set_panel_structure_from_vars   (int uv,
                                             int tv,
                                             double **Z,
                                             DATAINFO *pdinfo);

uv :
tv :
Z :
pdinfo :
Returns :

set_panel_structure_from_line ()

int         set_panel_structure_from_line   (const char *line,
                                             double **Z,
                                             DATAINFO *pdinfo);

line :
Z :
pdinfo :
Returns :

switch_panel_orientation ()

int         switch_panel_orientation        (double **Z,
                                             DATAINFO *pdinfo);

Reorganizes the data array Z and rewrites the dataset information pdinfo, transforming from stacked cross sections to stacked time series or vice versa. If the transformation is from stacked time series to stacked cross section, the dataset will no longer be acceptable as a panel for gretl's purposes; it may be useful for export purposes, though.

Z : data array.
pdinfo : dataset information struct.
Returns : 0 on successful completion, non-zero on error.

balanced_panel ()

int         balanced_panel                  (const DATAINFO *pdinfo);

pdinfo :
Returns :

panel_list_omit ()

int*        panel_list_omit                 (const MODEL *orig,
                                             const int *drop,
                                             int *err);

Creates a new panel regression list, by first reconstructing the regression specification from orig then deleting from the reconstruction the variables found in drop.

orig : list specifying original panel model.
drop : list of variables to be omitted.
err : pointer to receive error code.
Returns : the new, reduced list or NULL on error.

panel_list_add ()

int*        panel_list_add                  (const MODEL *orig,
                                             const int *add,
                                             int *err);

Creates a new panel regression list, by first reconstructing the regression specification from orig then adding to the reconstruction the variables found in add.

orig : list specifying original panel model.
add : list of variables to be added.
err : pointer to receive error code.
Returns : the new, augmented list or NULL on error.

panel_variance_info ()

int         panel_variance_info             (const double *x,
                                             const DATAINFO *pdinfo,
                                             double xbar,
                                             double *psw,
                                             double *psb);

x :
pdinfo :
xbar :
psw :
psb :
Returns :

panel_obs_info ()

int         panel_obs_info                  (const int *list,
                                             const double **Z,
                                             const DATAINFO *pdinfo,
                                             PRN *prn);

list :
Z :
pdinfo :
prn :
Returns :