gretl
2020e
About: gretl (Gnu Regression, Econometrics and Time-series Library) is a cross-platform statistical package mainly for econometric analysis.
![]() ![]() |
Go to the source code of this file.
Data Structures | |
struct | iterinfo_t |
struct | gui_midas_spec_ |
Macros | |
#define | robust_conf(c) |
Typedefs | |
typedef struct iterinfo_t | iterinfo |
typedef struct gui_midas_spec_ | gui_midas_spec |
Functions | |
void | clear_selector (void) |
selector * | selection_dialog (int ci, const char *title, void *data, int(*callback)()) |
selector * | simple_selection (int ci, const char *title, int(*callback)(), GtkWidget *parent) |
selector * | simple_selection_for_viewer (int ci, const char *title, int(*callback)(), windata_t *vwin) |
selector * | simple_selection_with_data (int ci, const char *title, int(*callback)(), GtkWidget *parent, gpointer data) |
void | modelspec_dialog (int ci) |
void | selector_set_varnum (int v) |
void | selector_from_model (windata_t *vwin) |
void | data_export_selection_wrapper (int file_code) |
void | functions_selection_wrapper (GtkWidget *parent) |
void | add_remove_functions_dialog (char **pubnames, int npub, char **privnames, int npriv, void *p1, void *p2) |
int | selector_code (const selector *sr) |
const char * | selector_list (const selector *sr) |
int | selector_list_hasconst (const selector *sr) |
gpointer | selector_get_data (const selector *sr) |
gpointer | selector_get_extra_data (const selector *sr) |
gpointer | selector_get_regls_bundle (void) |
gretlopt | selector_get_opts (const selector *sr) |
int | selector_get_depvar_number (const selector *sr) |
int | selector_get_VAR_order (const selector *sr) |
const char * | selector_entry_text (const selector *sr) |
int | selector_error (const selector *sr) |
void | maybe_clear_selector (const int *dlist) |
GtkWidget * | selector_get_window (const selector *sr) |
gchar * | get_selector_storelist (void) |
void | set_selector_storelist (const char *s) |
void | selector_register_genr (int newvars, gpointer p) |
void | selector_register_hc_choice (void) |
void | selector_cleanup (void) |
#define robust_conf | ( | c | ) |
Definition at line 23 of file selector.h.
typedef struct gui_midas_spec_ gui_midas_spec |
Definition at line 1 of file selector.h.
typedef struct iterinfo_t iterinfo |
Definition at line 1 of file selector.h.
void add_remove_functions_dialog | ( | char ** | pubnames, |
int | npub, | ||
char ** | privnames, | ||
int | npriv, | ||
void * | p1, | ||
void * | p2 | ||
) |
Definition at line 8389 of file selector.c.
References _, COL_ID, COL_LAG, COL_NAME, _selector::data, EDIT_FUNCTIONS, function_package_get_name(), model, pkg_add_remove_callback(), _selector::rvars1, _selector::rvars2, selection_dialog(), selector_set_blocking(), and user_function_index_by_name().
Referenced by add_remove_callback().
void clear_selector | ( | void | ) |
Definition at line 480 of file selector.c.
References arima_d, arima_D, arlags, ARMA, arma_const, arma_hessian, arma_p, arma_P, arma_q, arma_Q, call_iters_dialog(), censvar, _selector::ci, clear_midas_spec(), cluster_var, default_order, default_y, destroy_lag_preferences(), dpd_2step, dpd_asy, dpd_p, garch_const, garch_p, garch_q, hivar, instlist, J_UNREST_CONST, jcase, jrank, lovar, lp_pvals, malags, NADBL, np_xvar, offvar, open_selector, reset_arma_spinners(), selvar, tobit_hi, tobit_lo, varconst, vartrend, veclist, vecxlist, wtvar, xlist, and y2var.
Referenced by clear_vars(), and maybe_clear_selector().
void data_export_selection_wrapper | ( | int | file_code | ) |
Definition at line 8356 of file selector.c.
References _, COPY_CSV, data_export_selection_callback(), selector_set_blocking(), set_selector_storelist(), and simple_selection().
Referenced by csv_to_clipboard(), file_save(), and save_data_callback().
void functions_selection_wrapper | ( | GtkWidget * | parent | ) |
Definition at line 8371 of file selector.c.
References _, functions_selected_callback(), no_user_functions_check(), SAVE_FUNCTIONS, selection_dialog(), selector_set_blocking(), and set_selector_storelist().
Referenced by start_new_function_package().
gchar* get_selector_storelist | ( | void | ) |
Definition at line 8165 of file selector.c.
References get_or_set_storelist().
Referenced by csv_to_clipboard(), and do_store().
void maybe_clear_selector | ( | const int * | dlist | ) |
Definition at line 8543 of file selector.c.
References clear_selector(), and xlist.
Referenced by real_delete_vars().
void modelspec_dialog | ( | int | ci | ) |
Definition at line 560 of file selector.c.
References _, do_model(), and selection_dialog().
Referenced by model_callback(), and selector_from_model().
selector* selection_dialog | ( | int | ci, |
const char * | title, | ||
void * | data, | ||
int(*)() | callback | ||
) |
Definition at line 7420 of file selector.c.
References ANOVA, AR, ARCH, ARMA, AUX_LAST, available_functions_list(), build_arma_spinners(), build_depvar_section(), build_garch_spinners(), build_mid_section(), build_selector_buttons(), build_selector_combo(), build_selector_radios(), build_selector_switches(), build_x_axis_section(), COUNTMOD, dataset, dataset_lags_ok, _selector::depvar, _selector::dlg, DPANEL, DURATION, extra_plotvar_box(), FALSE, FNPKG_CODE, GARCH, GR_3D, GR_DUMMY, GR_FBOX, GR_IMP, GR_XY, GR_XYZ, INTREG, lag_selector_button(), list_append_named_lists(), list_append_var_simple(), list_show_var(), _selector::lvars, maybe_activate_depvar_lags(), maybe_insert_depvar_lags(), midas_special_left_panel(), MIDASREG, MODEL_CODE, mymalloc(), _selector::n_rows, NONPARAM_CODE, open_selector, presel, primary_rhs_varlist(), QUANTREG, _selector::row, SCATTERS, secondary_rhs_varlist(), select_lags_depvar, selection_dialog_add_top_label(), SELECTOR_FULL, selector_init(), selector_set_focus(), SR_LVARS, _selector::table, table_add_left(), THREE_VARS_CODE, TOBIT, TRUE, unhide_lags_switch(), USE_ZLIST, DATASET_::v, var_list_box_new(), _selector::vbox, VEC_CODE, want_combo(), want_radios(), WANT_TOGGLES, and WLS.
Referenced by add_remove_functions_dialog(), functions_selection_wrapper(), menu_boxplot_callback(), modelspec_dialog(), selector_callback(), selector_from_model(), tbar_model(), and tbar_xy_graph().
void selector_cleanup | ( | void | ) |
Definition at line 8559 of file selector.c.
Referenced by close_session().
int selector_code | ( | const selector * | sr | ) |
Definition at line 8461 of file selector.c.
References _selector::ci, PANEL, PANEL_B, and PANEL_WLS.
Referenced by do_add_omit(), do_coint(), do_graph_from_selector(), do_model(), do_nonparam_model(), do_vector_model(), and menu_op_wrapper().
const char* selector_entry_text | ( | const selector * | sr | ) |
Definition at line 8531 of file selector.c.
References _selector::extra.
Referenced by do_make_list(), listdef_vars_callback(), and maybe_set_listdef_vars().
int selector_error | ( | const selector * | sr | ) |
Definition at line 8538 of file selector.c.
References _selector::error.
Referenced by do_model(), do_nonparam_model(), and do_vector_model().
void selector_from_model | ( | windata_t * | vwin | ) |
Definition at line 753 of file selector.c.
References _, AR, AR1, ARBOND, ARCH, ARMA, BIPROBIT, censvar, MODEL_::ci, cluster_var, COUNT_MODEL, COUNTMOD, windata_t_::data, dataset, dataset_is_panel, dataset_is_time_series, default_order, default_y, DET_CONST, DET_SEAS, DET_TREND, GRETL_VAR_::detflags, do_vector_model(), DPANEL, DURATION, FE_LOGISTIC, GARCH, garch_const, garch_p, garch_q, GMM, gretl_list_copy(), gretl_lists_join_with_separator(), gretl_model_get_cluster_var(), gretl_model_get_depvar(), gretl_model_get_int(), gretl_model_get_secondary_list(), gretl_model_get_x_list(), gretl_VECM_rank(), HECKIT, hivar, MODEL_::ifc, instlist, INTREG, IV_GMM, IV_LIML, IVREG, jcase, jcode, jrank, LAD, GRETL_VAR_::lags, MODEL_::list, LOGISTIC, LOGIT, lovar, MIDASREG, MLE, MLOGIT, model_opt, modelspec_dialog(), NEGBIN, NLS, MODEL_::nwt, offvar, OLOGIT, OPROBIT, MODEL_::opt, OPT_A, OPT_B, OPT_C, OPT_D, OPT_E, OPT_F, OPT_G, OPT_H, OPT_L, OPT_M, OPT_N, OPT_NONE, OPT_P, OPT_R, OPT_T, OPT_U, OPT_X, OPT_Z, GRETL_VAR_::order, PANEL, PANEL_B, PANEL_WLS, PROBIT, QUANTREG, REPROBIT, retrieve_AR_lags_info(), retrieve_arma_info(), retrieve_biprobit_info(), retrieve_heckit_info(), retrieve_midas_info(), retrieve_tobit_info(), revise_nl_model(), revise_system_model(), GRETL_VAR_::rlist, GRETL_VAR_::robust, windata_t_::role, selection_dialog(), set_lag_prefs_from_model(), set_lag_prefs_from_VAR(), SYSTEM, TOBIT, VAR, varconst, DATASET_::varname, varnum_from_keystring(), vartrend, veclist, VECM, vecxlist, VIEW_MODEL, vwin_toplevel(), want_seasonals, WLS, wtvar, xlist, GRETL_VAR_::xlist, y_w_lags_enabled, y_x_lags_enabled, and GRETL_VAR_::ylist.
Referenced by model_revise_callback().
gpointer selector_get_data | ( | const selector * | sr | ) |
Definition at line 8486 of file selector.c.
References _selector::data.
Referenced by do_add_omit(), do_coeff_sum(), do_confidence_region(), do_make_list(), do_VAR_omit(), gui_matrix_from_list(), and real_limited_chow().
int selector_get_depvar_number | ( | const selector * | sr | ) |
Definition at line 972 of file selector.c.
References dataset, _selector::depvar, open_selector, series_index(), and DATASET_::v.
Referenced by add_to_rvars1(), dependent_var_cleanup(), depvar_selected(), get_rvars2_data(), is_lag_dummy(), midas_process_AR_spin(), parse_depvar_widget(), remove_specific_lag(), and sr_get_stoch_list().
gpointer selector_get_extra_data | ( | const selector * | sr | ) |
Definition at line 8491 of file selector.c.
References _selector::extra_data.
Referenced by do_coint(), and do_model().
Definition at line 8496 of file selector.c.
References _selector::ci, COINT2, FE_LOGISTIC, J_NO_CONST, J_REST_CONST, J_REST_TREND, J_UNREST_CONST, J_UNREST_TREND, jcase, OPT_A, OPT_B, OPT_F, OPT_N, OPT_R, OPT_T, _selector::opts, PANEL_B, and VECM.
Referenced by do_add_omit(), do_coint(), do_model(), do_nonparam_model(), do_regular_boxplot(), do_scatters(), do_splot_from_selector(), do_VAR_omit(), do_vector_model(), and menu_op_wrapper().
gpointer selector_get_regls_bundle | ( | void | ) |
int selector_get_VAR_order | ( | const selector * | sr | ) |
Definition at line 3033 of file selector.c.
References _selector::extra, and spinner_get_int.
Referenced by get_lag_preference().
GtkWidget* selector_get_window | ( | const selector * | sr | ) |
const char* selector_list | ( | const selector * | sr | ) |
Definition at line 8467 of file selector.c.
References _selector::cmdlist.
Referenced by do_add_omit(), do_coeff_sum(), do_coint(), do_confidence_region(), do_dummy_graph(), do_factorized_boxplot(), do_graph_from_selector(), do_make_list(), do_model(), do_nonparam_model(), do_regular_boxplot(), do_scatters(), do_splot_from_selector(), do_VAR_omit(), do_vector_model(), do_xcorrgm(), do_xyz_graph(), gui_matrix_from_list(), menu_op_wrapper(), and real_limited_chow().
int selector_list_hasconst | ( | const selector * | sr | ) |
Definition at line 8478 of file selector.c.
References _selector::cmdlist.
void selector_register_genr | ( | int | newvars, |
gpointer | p | ||
) |
Definition at line 7119 of file selector.c.
References _selector::ci, dataset, list_append_var_simple(), list_show_var(), _selector::lvars, tree_model_get_iter_last(), and DATASET_::v.
Referenced by do_selector_genr().
void selector_register_hc_choice | ( | void | ) |
Definition at line 5772 of file selector.c.
References _selector::ci, combo_box_prepend_text(), combo_box_remove(), get_default_hc_string(), _selector::hccme_button, and open_selector.
Referenced by apply_changes().
void selector_set_varnum | ( | int | v | ) |
Definition at line 555 of file selector.c.
References presel.
Referenced by menu_boxplot_callback().
void set_selector_storelist | ( | const char * | s | ) |
Definition at line 8170 of file selector.c.
References get_or_set_storelist().
Referenced by auto_store(), data_export_selection_callback(), data_export_selection_wrapper(), and functions_selection_wrapper().
selector* simple_selection | ( | int | ci, |
const char * | title, | ||
int(*)() | callback, | ||
GtkWidget * | parent | ||
) |
Definition at line 8101 of file selector.c.
References simple_selection_with_data().
Referenced by data_export_selection_wrapper(), menu_op_action(), selector_callback(), and xcorrgm_callback().
selector* simple_selection_for_viewer | ( | int | ci, |
const char * | title, | ||
int(*)() | callback, | ||
windata_t * | vwin | ||
) |
Definition at line 8116 of file selector.c.
References _selector::dlg, FALSE, windata_t_::mbar, restore_vwin_menu(), simple_selection_with_data(), tabwin_register_dialog(), vwin_toplevel(), and window_is_tab.
Referenced by do_chow_cusum(), and selector_callback().
selector* simple_selection_with_data | ( | int | ci, |
const char * | title, | ||
int(*)() | callback, | ||
GtkWidget * | parent, | ||
gpointer | data | ||
) |
Definition at line 7944 of file selector.c.
References _, ADD, add_omit_list(), add_to_rvars1_callback(), build_ellipse_spinner(), build_selector_buttons(), build_selector_combo(), build_selector_radios(), build_selector_switches(), CHOW, _selector::ci, COEFFSUM, CORR, dataset, DEFINE_LIST, DEFINE_MATRIX, _selector::dlg, E_DATA, ELLIPSE, EXPORT, FALSE, GR_BOX, lags_hidden, list_append_named_lists(), list_append_var_simple(), list_show_var(), _selector::lvars, maybe_prefill_RHS(), maybe_set_listdef_vars(), maybe_set_plot_vars(), mdata_selection_count(), mymalloc(), _selector::n_left, _selector::n_rows, OMIT, open_selector, OPT_A, OPT_R, push_pull_buttons(), remove_from_rvars1_callback(), RHS_PREFILL, _selector::rvars1, SAVE_DATA_ACTION, select_singleton(), selector_add_list_name_entry(), selector_init(), selector_set_blocking(), SELECTOR_SIMPLE, set_n_rvars1(), set_vars_from_main(), SHOW_LISTS_CODE, simple_selection_top_label(), SR_LVARS, SR_RVARS1, _selector::table, table_add_left(), table_add_right(), TRUE, TSPLOTS, TWO_VARS_CODE, unhide_lags_switch(), DATASET_::v, var_list_box_new(), VAROMIT, _selector::vbox, want_combo(), want_radios(), WANT_TOGGLES, and warnbox().
Referenced by gui_define_list(), launch_list_maker(), real_gui_new_matrix(), simple_selection(), and simple_selection_for_viewer().