libset

libset

Synopsis

enum                VECMnorm;
enum                OptimCode;
#define             BFGS_MAXITER
#define             BFGS_TOLER
#define             BFGS_MAXGRAD
#define             BFGS_VERBSKIP
#define             BFGS_RSTEP
#define             BHHH_MAXITER
#define             BHHH_TOLER
#define             LBFGS_MEM
#define             BOOTREP
#define             FORCE_DECP
#define             FORCE_HC
#define             GARCH_VCV
#define             GARCH_ROBUST_VCV
#define             HAC_KERNEL
#define             HAC_LAG
#define             HALT_ON_ERR
#define             HC_VERSION
#define             HORIZON
#define             USE_LBFGS
#define             LOOP_MAXITER
#define             RQ_MAXITER
#define             MAX_VERBOSE
#define             NLS_TOLER
#define             PCSE
#define             PREWHITEN
#define             QS_BANDWIDTH
#define             SHELL_OK
#define             USE_CWD
#define             USE_SVD
#define             USE_FCP
#define             VECM_NORM
#define             GRETL_OPTIM
#define             ARMA_VCV
#define             SKIP_MISSING
#define             R_FUNCTIONS
#define             R_LIB
#define             NORMAL_RAND
#define             RNG
#define             DPDSTYLE
#define             GMM_MAXITER
int                 (*ITER_PRINT_FUNC)                  (...,
                                                         PRN *Param2);
void                (*SHOW_ACTIVITY_FUNC)               (void);
int                 (*DEBUG_READLINE)                   (void *Param1);
int                 (*DEBUG_OUTPUT)                     (void *Param1);
#define             set_nls_toler                       (x)
int                 libset_init                         (void);
void                libset_cleanup                      (void);
int                 libset_restore_state_zero           (DATAINFO *pdinfo);
int                 push_program_state                  (void);
int                 pop_program_state                   (void);
int                 libset_get_bool                     (const char *key);
int                 libset_set_bool                     (const char *key,
                                                         int val);
double              libset_get_double                   (const char *key);
int                 libset_set_double                   (const char *key,
                                                         double val);
double              libset_get_user_tolerance           (const char *key);
int                 libset_get_int                      (const char *key);
int                 libset_set_int                      (const char *key,
                                                         int val);
int                 is_libset_var                       (const char *s);
void                set_xsect_hccme                     (const char *s);
void                set_tseries_hccme                   (const char *s);
void                set_panel_hccme                     (const char *s);
void                set_garch_robust_vcv                (const char *s);
int                 get_hac_lag                         (int T);
int                 data_based_hac_bandwidth            (void);
int                 get_bkbp_k                          (const DATAINFO *pdinfo);
void                get_bkbp_periods                    (const DATAINFO *pdinfo,
                                                         int *l,
                                                         int *u);
void                set_mp_bits                         (int b);
int                 get_mp_bits                         (void);
const gretl_matrix * get_init_vals                      (void);
int                 n_init_vals                         (void);
void                free_init_vals                      (void);
const gretl_matrix * get_matrix_mask                    (void);
int                 get_matrix_mask_nobs                (void);
void                destroy_matrix_mask                 (void);
void                set_loop_on                         (int quiet,
                                                         int progressive);
void                set_loop_off                        (void);
int                 gretl_looping                       (void);
int                 gretl_looping_currently             (void);
int                 gretl_looping_quietly               (void);
int                 gretl_looping_progressive           (void);
void                gretl_set_batch_mode                (int b);
int                 gretl_in_batch_mode                 (void);
void                gretl_set_gui_mode                  (int g);
int                 gretl_in_gui_mode                   (void);
void                set_gretl_echo                      (int e);
int                 gretl_echo_on                       (void);
void                set_gretl_messages                  (int e);
int                 gretl_messages_on                   (void);
int                 gretl_warnings_on                   (void);
int                 gretl_debugging_on                  (void);
void                shelldir_init                       (const char *s);
char *              get_shelldir                        (void);
char                get_csv_delim                       (const DATAINFO *pdinfo);
const char *        get_csv_na_string                   (void);
void                set_csv_na_string                   (const char *s);
int                 execute_set_line                    (const char *line,
                                                         const double **Z,
                                                         DATAINFO *pdinfo,
                                                         gretlopt opt,
                                                         PRN *prn);
void                set_iter_print_func                 (ITER_PRINT_FUNC func);
int                 iter_print_callback                 (int i,
                                                         PRN *prn);
int                 iter_print_func_installed           (void);
void                set_show_activity_func              (SHOW_ACTIVITY_FUNC func);
void                show_activity_callback              (void);
int                 show_activity_func_installed        (void);
void                set_debug_read_func                 (DEBUG_READLINE dfunc);
DEBUG_READLINE      get_debug_read_func                 (void);
void                set_debug_output_func               (DEBUG_OUTPUT dout);
DEBUG_OUTPUT        get_debug_output_func               (void);
void                set_workdir_callback                (int (*callback) ());
int                 libset_write_script                 (const char *fname);
int                 libset_read_script                  (const char *fname);

Description

Details

enum VECMnorm

typedef enum {
    NORM_PHILLIPS,
    NORM_DIAG,
    NORM_FIRST,
    NORM_NONE,
    NORM_MAX
} VECMnorm;


enum OptimCode

typedef enum {
    OPTIM_AUTO,
    OPTIM_BFGS,
    OPTIM_NEWTON,
    OPTIM_MAX
} OptimCode;


BFGS_MAXITER

#define BFGS_MAXITER     "bfgs_maxiter"


BFGS_TOLER

#define BFGS_TOLER       "bfgs_toler"


BFGS_MAXGRAD

#define BFGS_MAXGRAD     "bfgs_maxgrad"


BFGS_VERBSKIP

#define BFGS_VERBSKIP    "bfgs_verbskip"


BFGS_RSTEP

#define BFGS_RSTEP       "bfgs_richardson"


BHHH_MAXITER

#define BHHH_MAXITER     "bhhh_maxiter"


BHHH_TOLER

#define BHHH_TOLER       "bhhh_toler"


LBFGS_MEM

#define LBFGS_MEM        "lbfgs_mem"


BOOTREP

#define BOOTREP          "bootrep"


FORCE_DECP

#define FORCE_DECP       "force_decpoint"


FORCE_HC

#define FORCE_HC         "force_hc"


GARCH_VCV

#define GARCH_VCV        "garch_vcv"


GARCH_ROBUST_VCV

#define GARCH_ROBUST_VCV "garch_robust_vcv"


HAC_KERNEL

#define HAC_KERNEL       "hac_kernel"


HAC_LAG

#define HAC_LAG          "hac_lag"


HALT_ON_ERR

#define HALT_ON_ERR      "halt_on_error"


HC_VERSION

#define HC_VERSION       "hc_version"


HORIZON

#define HORIZON          "horizon"


USE_LBFGS

#define USE_LBFGS        "lbfgs"


LOOP_MAXITER

#define LOOP_MAXITER     "loop_maxiter"


RQ_MAXITER

#define RQ_MAXITER       "rq_maxiter"


MAX_VERBOSE

#define MAX_VERBOSE      "max_verbose"


NLS_TOLER

#define NLS_TOLER        "nls_toler"


PCSE

#define PCSE             "pcse"


PREWHITEN

#define PREWHITEN        "hac_prewhiten"


QS_BANDWIDTH

#define QS_BANDWIDTH     "qs_bandwidth"


SHELL_OK

#define SHELL_OK         "shell_ok"


USE_CWD

#define USE_CWD          "use_cwd"


USE_SVD

#define USE_SVD          "svd"


USE_FCP

#define USE_FCP          "fcp"


VECM_NORM

#define VECM_NORM        "vecm_norm"


GRETL_OPTIM

#define GRETL_OPTIM      "optimizer"


ARMA_VCV

#define ARMA_VCV         "arma_vcv"


SKIP_MISSING

#define SKIP_MISSING     "skip_missing"


R_FUNCTIONS

#define R_FUNCTIONS      "R_functions"


R_LIB

#define R_LIB            "R_lib"


NORMAL_RAND

#define NORMAL_RAND      "normal_rand"


RNG

#define RNG              "RNG"


DPDSTYLE

#define DPDSTYLE         "dpdstyle"


GMM_MAXITER

#define GMM_MAXITER      "gmm_maxiter"


ITER_PRINT_FUNC ()

int                 (*ITER_PRINT_FUNC)                  (...,
                                                         PRN *Param2);


SHOW_ACTIVITY_FUNC ()

void                (*SHOW_ACTIVITY_FUNC)               (void);


DEBUG_READLINE ()

int                 (*DEBUG_READLINE)                   (void *Param1);


DEBUG_OUTPUT ()

int                 (*DEBUG_OUTPUT)                     (void *Param1);


set_nls_toler()

#define set_nls_toler(x) (libset_set_double(NLS_TOLER, x))


libset_init ()

int                 libset_init                         (void);


libset_cleanup ()

void                libset_cleanup                      (void);


libset_restore_state_zero ()

int                 libset_restore_state_zero           (DATAINFO *pdinfo);


push_program_state ()

int                 push_program_state                  (void);


pop_program_state ()

int                 pop_program_state                   (void);


libset_get_bool ()

int                 libset_get_bool                     (const char *key);


libset_set_bool ()

int                 libset_set_bool                     (const char *key,
                                                         int val);


libset_get_double ()

double              libset_get_double                   (const char *key);


libset_set_double ()

int                 libset_set_double                   (const char *key,
                                                         double val);


libset_get_user_tolerance ()

double              libset_get_user_tolerance           (const char *key);


libset_get_int ()

int                 libset_get_int                      (const char *key);


libset_set_int ()

int                 libset_set_int                      (const char *key,
                                                         int val);


is_libset_var ()

int                 is_libset_var                       (const char *s);


set_xsect_hccme ()

void                set_xsect_hccme                     (const char *s);


set_tseries_hccme ()

void                set_tseries_hccme                   (const char *s);


set_panel_hccme ()

void                set_panel_hccme                     (const char *s);


set_garch_robust_vcv ()

void                set_garch_robust_vcv                (const char *s);


get_hac_lag ()

int                 get_hac_lag                         (int T);


data_based_hac_bandwidth ()

int                 data_based_hac_bandwidth            (void);


get_bkbp_k ()

int                 get_bkbp_k                          (const DATAINFO *pdinfo);


get_bkbp_periods ()

void                get_bkbp_periods                    (const DATAINFO *pdinfo,
                                                         int *l,
                                                         int *u);


set_mp_bits ()

void                set_mp_bits                         (int b);


get_mp_bits ()

int                 get_mp_bits                         (void);


get_init_vals ()

const gretl_matrix * get_init_vals                      (void);


n_init_vals ()

int                 n_init_vals                         (void);


free_init_vals ()

void                free_init_vals                      (void);


get_matrix_mask ()

const gretl_matrix * get_matrix_mask                    (void);


get_matrix_mask_nobs ()

int                 get_matrix_mask_nobs                (void);


destroy_matrix_mask ()

void                destroy_matrix_mask                 (void);


set_loop_on ()

void                set_loop_on                         (int quiet,
                                                         int progressive);


set_loop_off ()

void                set_loop_off                        (void);


gretl_looping ()

int                 gretl_looping                       (void);


gretl_looping_currently ()

int                 gretl_looping_currently             (void);


gretl_looping_quietly ()

int                 gretl_looping_quietly               (void);


gretl_looping_progressive ()

int                 gretl_looping_progressive           (void);


gretl_set_batch_mode ()

void                gretl_set_batch_mode                (int b);


gretl_in_batch_mode ()

int                 gretl_in_batch_mode                 (void);


gretl_set_gui_mode ()

void                gretl_set_gui_mode                  (int g);


gretl_in_gui_mode ()

int                 gretl_in_gui_mode                   (void);


set_gretl_echo ()

void                set_gretl_echo                      (int e);


gretl_echo_on ()

int                 gretl_echo_on                       (void);


set_gretl_messages ()

void                set_gretl_messages                  (int e);


gretl_messages_on ()

int                 gretl_messages_on                   (void);


gretl_warnings_on ()

int                 gretl_warnings_on                   (void);


gretl_debugging_on ()

int                 gretl_debugging_on                  (void);


shelldir_init ()

void                shelldir_init                       (const char *s);


get_shelldir ()

char *              get_shelldir                        (void);


get_csv_delim ()

char                get_csv_delim                       (const DATAINFO *pdinfo);


get_csv_na_string ()

const char *        get_csv_na_string                   (void);


set_csv_na_string ()

void                set_csv_na_string                   (const char *s);


execute_set_line ()

int                 execute_set_line                    (const char *line,
                                                         const double **Z,
                                                         DATAINFO *pdinfo,
                                                         gretlopt opt,
                                                         PRN *prn);


set_iter_print_func ()

void                set_iter_print_func                 (ITER_PRINT_FUNC func);


iter_print_callback ()

int                 iter_print_callback                 (int i,
                                                         PRN *prn);


iter_print_func_installed ()

int                 iter_print_func_installed           (void);


set_show_activity_func ()

void                set_show_activity_func              (SHOW_ACTIVITY_FUNC func);


show_activity_callback ()

void                show_activity_callback              (void);


show_activity_func_installed ()

int                 show_activity_func_installed        (void);


set_debug_read_func ()

void                set_debug_read_func                 (DEBUG_READLINE dfunc);


get_debug_read_func ()

DEBUG_READLINE      get_debug_read_func                 (void);


set_debug_output_func ()

void                set_debug_output_func               (DEBUG_OUTPUT dout);


get_debug_output_func ()

DEBUG_OUTPUT        get_debug_output_func               (void);


set_workdir_callback ()

void                set_workdir_callback                (int (*callback) ());


libset_write_script ()

int                 libset_write_script                 (const char *fname);


libset_read_script ()

int                 libset_read_script                  (const char *fname);