input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int midas_means_init(midas_info *mi, const gretl_matrix *y, const gretl_matrix *X, gretl_matrix *c, const DATASET *dset) { int v5; int err; int i; int j; int k; int t; double zti; gretl_matrix *XZ; midas_term *mt; XZ = gretl_matrix_alloc(mi->nobs, mi->hfslo...
static int midas_means_init(midas_info *mi, const gretl_matrix *y, const gretl_matrix *X, gretl_matrix *c, const DATASET *dset) { gretl_matrix *XZ; int err = 0; XZ = gretl_matrix_alloc(mi->nobs, mi->nx + mi->hfslopes); if (XZ == NULL) { err = E_ALLOC...
midas_means_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *midas_model(MODEL *__return_ptr retstr, const int *list, const char *param, DATASET *dset, gretlopt opt, PRN *prn) { MODEL v7; PRN *prna; gretlopt opta; DATASET *dseta; const char *parama; const int *lista; MODEL *v13; int i; int err; int origv; int save_t1; int save_t2...
MODEL midas_model(const int *list, const char *param, DATASET *dset, gretlopt opt, PRN *prn) { midas_info *mi = NULL; int origv = dset->v; int save_t1 = dset->t1; int save_t2 = dset->t2; MODEL mod; int i, err = 0; gretl_model_init(&mod, dset); mi = midas_info_new(list, dset); if (m...
midas_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *midas_multipliers(gretl_bundle *mb, int cumulate, int idx, int *err) { int v5; double *v6; const char *v7; char **v8; int minlag; int mtype; int h; int i; int j; int k; gretl_matrix *theta; gretl_matrix *V; const char *lname; gretl_matrix *ret; ...
gretl_matrix *midas_multipliers(gretl_bundle *mb, int cumulate, int idx, int *err) { gretl_matrix *ret = NULL; gretl_matrix *theta = NULL; gretl_matrix *mult = NULL; gretl_matrix *V = NULL; gretl_matrix *J = NULL; gretl_matrix *vcv = NULL; const char *lname = NULL; int mi...
midas_multipliers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int midas_nls_setup(midas_info *mi, DATASET *dset, gretlopt opt, PRN *prn) { int i; int ia; int ib; int j; int err; int nmidas; const int *list; midas_term *mt; midas_term *mta; midas_term *mtb; char tmp[64]; char line[520]; unsigned long v19; v19 = __readfsqword(0x28u); list = mi->list; ...
static int midas_nls_setup(midas_info *mi, DATASET *dset, gretlopt opt, PRN *prn) { char tmp[64], line[MAXLEN]; midas_term *mt; const int *list = mi->list; int nmidas = mi->nmidas; int i, j = 0; int err = 0; if (opt & OPT_P) { pputs(prn, "\n=== auto-generated nls specificat...
midas_nls_setup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *midas_pdstr(const DATASET *dset, int cfac) { int f; f = get_midas_frequency(dset, cfac); switch (f) { case 4: return "quarterly"; case 12: return "monthly"; case 5: case 6: case 7: return "daily"; } return "unknown frequency"; }
const char *midas_pdstr(const DATASET *dset, int cfac) { const char *pdstrs[] = {N_("quarterly"), N_("monthly"), N_("daily")}; int f = get_midas_frequency(dset, cfac); if (f == 4) { return pdstrs[0]; } else if (f == 12) { return pdstrs[1]; } else if (f == 5 || f == 6 || f == 7) { return pdstrs[2]...
midas_pdstr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int midas_print_list(const int *list, const DATASET *dset, PRN *prn) { int err; DATASET *tmpset; int mlist[2]; unsigned long v8; v8 = __readfsqword(0x28u); tmpset = 0; err = 0; tmpset = midas_aux_dataset(list, dset, &err); if (!err) { mlist[0] = 1; mlist[1] = 0; err = print_by_obs(mlist, ...
static int midas_print_list(const int *list, const DATASET *dset, PRN *prn) { DATASET *tmpset = NULL; int err = 0; tmpset = midas_aux_dataset(list, dset, &err); if (!err) { int mlist[2] = {1, 0}; err = print_by_obs(mlist, tmpset, OPT_NONE, 0, prn); destroy_dataset(tmpset); } return err; }
midas_print_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *midas_revise_jspec(joinspec *jspec, DATASET *dset, int *n_add, int *err) { char v5; int v6; char mc; int rpd; int i; int m; int extlen; int v; DATASET *rdset; int *ret; char *cname; char tmp[40]; unsigned long v19; v19 = __readfsqword(0x28u); rdset = outer_dataset(jspec); rpd = 0; ...
static int *midas_revise_jspec(joinspec *jspec, DATASET *dset, int *n_add, int *err) { DATASET *rdset = outer_dataset(jspec); int m, rpd = 0, nvars = 0; int *ret = NULL; if (jspec->midas_pd == 0) { rpd = jspec->midas_pd = rdset->pd; } m = midas_m_from_pd(dset, jspec->mi...
midas_revise_jspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int midas_set_sample(midas_info *mi, DATASET *dset) { int t1; int t2; int err; int *biglist; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; biglist = make_midas_biglist(mi->list, mi->mterms, mi->nmidas); if (!biglist) err = 12; if (!err) { t1 = dset->t1; t2 = dset->t2; err = ...
static int midas_set_sample(midas_info *mi, DATASET *dset) { int *biglist; int err = 0; biglist = make_midas_biglist(mi->list, mi->mterms, mi->nmidas); if (biglist == NULL) { err = E_ALLOC; } if (!err) { int t1 = dset->t1, t2 = dset->t2; err = list_adjust_sample(biglist, &t1, &t2, dset, NULL)...
midas_set_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void midas_term_init(midas_term *mt) { mt->lnam0[0] = 0; mt->lname[0] = 0; mt->mname[0] = 0; mt->theta = 0; mt->flags = 0; mt->minlag = 0; mt->maxlag = 0; mt->type = 0; mt->nparm = 0; mt->nlags = 0; }
static void midas_term_init(midas_term *mt) { mt->lnam0[0] = '\0'; mt->lname[0] = '\0'; mt->mname[0] = '\0'; mt->theta = NULL; mt->flags = 0; mt->minlag = 0; mt->maxlag = 0; mt->type = 0; mt->nparm = 0; mt->nlags = 0; }
midas_term_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int midas_type_from_arg(const char *s, int *umidas, int *err) { int ret; const char *sval; if (integer_string(s)) { ret = atoi(s); } else { ret = midas_type_from_string(s); if (ret < 0) { sval = get_string_by_name(s); if (sval) ret = midas_type_from_string(sval); } if (r...
static int midas_type_from_arg(const char *s, int *umidas, int *err) { int ret = -1; if (integer_string(s)) { ret = atoi(s); } else { ret = midas_type_from_string(s); if (ret < 0) { char *sval = get_string_by_name(s); if (sval != NULL) { ret = midas_type_from_string(sval); ...
midas_type_from_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int midas_type_from_string(const char *s) { if (!strcmp(s, "\"umidas\"") || !strcmp(s, "umidas")) return 0; if (!strcmp(s, "\"nealmon\"") || !strcmp(s, "nealmon")) return 1; if (!strcmp(s, "\"beta0\"") || !strcmp(s, "beta0")) return 2; if (!strcmp(s, "\"betan\"") || !strcmp(s, "betan")) return 3...
static int midas_type_from_string(const char *s) { if (!strcmp(s, "\"umidas\"") || !strcmp(s, "umidas")) { return MIDAS_U; } else if (!strcmp(s, "\"nealmon\"") || !strcmp(s, "nealmon")) { return MIDAS_NEALMON; } else if (!strcmp(s, "\"beta0\"") || !strcmp(s, "beta0")) { return MIDAS_BETA0; } else if...
midas_type_from_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *midas_weights(int p, const gretl_matrix *m, int method, int *err) { int rows; double *v6; int *v7; char *v8; int using_mp; int i; int ia; int ib; int ic; int id; int j; int ja; int k; int save_errno; double wsum; double wsuma; double si_0; gr...
gretl_matrix *midas_weights(int p, const gretl_matrix *m, int method, int *err) { double *theta; double eps = pow(2.0, -52); double wsum = 0.0; gretl_matrix *w = NULL; int using_mp = 0; int k, i, j; #if MDEBUG gretl_matrix_print(m, "m, in midas_weights"); #endif if (method ...
midas_weights
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void middle_table_row(middletab *mt, int j, PRN *prn) { char *v3; char *v4; char *v5; char *v6; char *v7; char *v8; char *v9; char *v10; char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v19; long d; char *v21; char *v22; unsigned int...
static void middle_table_row(struct middletab *mt, int j, PRN *prn) { const char *s1 = mt->key[j]; const char *s2 = mt->key[j + 1]; char x1[48], x2[48]; int k = j + 1; if (tex_format(prn)) { if (mt->multi) { pprintf(prn, "%s & %s \\\\\n%s & %s \\\\\n", _(s1), print_fifteen(x1, mt->val...
middle_table_row
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void middletab_prepare_format(middletab *mt, int j) { char *v2; int v3; char *v4; char *v5; int v6; char *v7; int v8; int d1; int d2; int len; const char *s1; const char *s2; s1 = mt->key[j]; s2 = mt->key[j + 1]; d1 = 0; d2 = 0; len = mt->mlen; if (mt->nls) { v2 = gettext(s1); ...
static void middletab_prepare_format(struct middletab *mt, int j) { const char *s1 = mt->key[j]; const char *s2 = mt->key[j + 1]; int d1 = 0, d2 = 0; int len = mt->mlen; if (mt->nls) { d1 = strlen(_(s1)) - g_utf8_strlen(_(s1), -1); d2 = strlen(_(s2)) - g_utf8_strlen(_(s2), -1); } if (mt->multi)...
middletab_prepare_format
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int might_be_date_string(const char *s, int n) { int y; int m; int d; char test[12]; unsigned long v7; v7 = __readfsqword(0x28u); if (n > 10) return 0; test[0] = 0; strncat(test, s, n); if (strspn(s, "1234567890") == n) return 1; if ((unsigned int)__isoc99_sscanf(s, "%d:%d", &y, &m) == 2)...
static int might_be_date_string(const char *s, int n) { char test[12]; int y, m, d; #if LDEBUG fprintf(stderr, "might_be_date_string: s='%s', n=%d\n", s, n); #endif if (n > 10) { return 0; } *test = 0; strncat(test, s, n); if (strspn(s, "1234567890") == n) { return 1; } else if (sscanf(s,...
might_be_date_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *misc_scalar_node(NODE *n, int f, parser *p) { int s; NODE *ret; ret = get_aux_node(p, 54, 0, 0); if (ret) { s = node_get_int(n, p); if (f == 400) g_usleep(1000000 * s); else gretl_set_sf_cgi(s); ret->v.str = 0; } return ret; }
static NODE *misc_scalar_node(NODE *n, int f, parser *p) { NODE *ret = aux_scalar_node(p); if (ret != NULL) { int s = node_get_int(n, p); if (f == F_SLEEP) { g_usleep(G_USEC_PER_SEC * s); ret->v.xval = 0; } else { gretl_set_sf_cgi(s); ret->v.xval = 0; } } return ret; }
misc_scalar_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int missing_matrix_error(const char *name) { char *v1; char *v2; if (name) { v2 = gettext("kalman: required matrix %s is missing"); gretl_errmsg_sprintf(v2, name); } else { v1 = gettext("kalman: a required matrix is missing"); gretl_errmsg_set(v1); } return 2; }
static int missing_matrix_error(const char *name) { if (name == NULL) { gretl_errmsg_set(_("kalman: a required matrix is missing")); } else { gretl_errmsg_sprintf(_("kalman: required matrix %s is missing"), name); } return E_DATA; }
missing_matrix_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double missing_obs_fraction(const DATASET *dset) { int missrow; int totmiss; int i; int t; totmiss = 0; if (!dset->n) return 0.0; for (t = 0; t < dset->n; ++t) { missrow = 1; for (i = 1; i < dset->v; ++i) { if (fabs(dset->Z[i][t]) <= 1.797693134862316e308) { missrow = 0; ...
double missing_obs_fraction(const DATASET *dset) { int missrow, totmiss = 0; int i, t; if (dset->n == 0) { return 0.0; } for (t = 0; t < dset->n; t++) { missrow = 1; for (i = 1; i < dset->v; i++) { if (!na(dset->Z[i][t])) { missrow = 0; break; } } totmiss += m...
missing_obs_fraction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *ml_gradient_matrix(nlspec *spec, int *err) { int i; int j; int s; int t; int ta; int tb; int k; int T; int v; gretl_matrix *G; gretl_matrix *Ga; double x; double xa; const gretl_matrix *m; gretl_matrix *ma; G = 0; k = spec->ncoeff; T = spec->nobs; if ((spec->flags & ...
static gretl_matrix *ml_gradient_matrix(nlspec *spec, int *err) { gretl_matrix *G = NULL; int k = spec->ncoeff; int T = spec->nobs; if (numeric_mode(spec)) { G = numerical_score_matrix(spec->coeff, T, k, mle_llt_callback, (void *)spec, err); } else { gretl_matrix *m; ...
ml_gradient_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ml_hetero_test(MODEL *pmod, double s2, const double *uvar, int nunits, const int *unit_obs) { double v5; double nobs; int i; int df_0; int df_0a; int err; int Ti; double s2h; double x2; ModelTest *test; s2h = 0.0; df_0 = 0; err = 0; for (i = 0; i < nunits; ++i) { ...
static int ml_hetero_test(MODEL *pmod, double s2, const double *uvar, int nunits, const int *unit_obs) { ModelTest *test; double x2, s2h = 0.0; int i, Ti, df = 0; int err = 0; for (i = 0; i < nunits; i++) { Ti = unit_obs[i]; if (Ti > 0) { s2h += Ti * log(uvar[i]); ...
ml_hetero_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretlopt ml_robust_specifier(nlspec *spec) { const char *s; if ((spec->opt & 4) != 0) return OPT_C; s = get_optval_string(78, OPT_R); if (s && !strcmp(s, "hac")) return OPT_N; else return OPT_NONE; }
static gretlopt ml_robust_specifier(nlspec *spec) { if (spec->opt & OPT_C) { return OPT_C; } else { const char *s = get_optval_string(MLE, OPT_R); if (s != NULL && !strcmp(s, "hac")) { return OPT_N; } } return OPT_NONE; }
ml_robust_specifier
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void ml_vcv_line(const VCVInfo *vi, PRN *prn) { char *v2; char *v3; int tex; const char *s; tex = tex_format(prn); s = 0; switch (vi->vmin) { case 1: s = "Standard errors based on Hessian"; break; case 2: s = "Standard errors based on Information Matrix"; break; case 3: s = "Sta...
static void ml_vcv_line(const VCVInfo *vi, PRN *prn) { int tex = tex_format(prn); const char *s = NULL; switch (vi->vmin) { case ML_HESSIAN: s = N_("Standard errors based on Hessian"); break; case ML_IM: s = N_("Standard errors based on Information Matrix"); break; case ML_OP: s = N_("S...
ml_vcv_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mle_add_vcv(MODEL *pmod, nlspec *spec) { int err; int i; gretlopt vopt; gretl_matrix *G; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; if ((spec->opt & 1) != 0) { for (i = 0; i < pmod->ncoeff; ++i) pmod->sderr[i] = NAN; } else if ((spec->opt & 0x80) != 0) { return gretl_mode...
static int mle_add_vcv(MODEL *pmod, nlspec *spec) { int err = 0; if (spec->opt & OPT_A) { int i; for (i = 0; i < pmod->ncoeff; i++) { pmod->sderr[i] = NADBL; } } else if (spec->opt & OPT_H) { err = gretl_model_add_hessian_vcv(pmod, spec->Hinv); } else { gretl_matrix *G = ml_gradient...
mle_add_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mle_calculate(nlspec *s, PRN *prn) { gretlopt opt; unsigned int v3; char *v4; gretlopt v5; int err; int use_newton; int maxit; BFGS_GRAD_FUNC_0 gradfunc; HESS_FUNC hessfunc; double crittol; double gradtol; double d; unsigned long v15; v15 = __readfsqword(0x28u); gradfunc = 0; hessfu...
static int mle_calculate(nlspec *s, PRN *prn) { BFGS_GRAD_FUNC gradfunc = NULL; HESS_FUNC hessfunc = NULL; int maxit, use_newton = 0; int err = 0; if (libset_get_int(GRETL_OPTIM) == OPTIM_NEWTON) { use_newton = 1; } if (analytic_mode(s) && !suppress_grad_check(s)) { err = check_derivatives(s, pr...
mle_calculate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mle_criteria(MODEL *pmod, int addk) { double v2; double v4; double v5; int err; int k; int n; err = 0; if (fabs(pmod->lnL) <= 1.797693134862316e308) { k = pmod->ncoeff + addk; n = pmod->nobs; pmod->criterion[0] = (double)k + (double)k + pmod->lnL * -2.0; v4 = pmod->lnL * -2.0; p...
int mle_criteria(MODEL *pmod, int addk) { int err = 0; if (na(pmod->lnL)) { pmod->criterion[C_AIC] = NADBL; pmod->criterion[C_BIC] = NADBL; pmod->criterion[C_HQC] = NADBL; err = 1; } else { int k = pmod->ncoeff + addk; int n = pmod->nobs; pmod->criterion[C_AIC] = -2.0 * pmod->lnL + 2...
mle_criteria
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *mle_hessian_inverse(nlspec *spec, int *err) { gretl_matrix *H; H = gretl_matrix_alloc(spec->ncoeff, spec->ncoeff); if (H) *err = get_mle_hessian(0, H, spec); else *err = 12; if (!*err) { *err = gretl_invert_symmetric_matrix(H); if (*err) { fwrite("mle_hessian_inverse: fail...
static gretl_matrix *mle_hessian_inverse(nlspec *spec, int *err) { int k = spec->ncoeff; gretl_matrix *H = gretl_matrix_alloc(k, k); if (H == NULL) { *err = E_ALLOC; } else { *err = get_mle_hessian(NULL, H, spec); } if (!*err) { *err = gretl_invert_symmetric_matrix(H); if (*err) { fp...
mle_hessian_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const double *mle_llt_callback(const double *b, int i, void *p) { update_coeff_values(b, (nlspec *)p); if (nl_calculate_fvec((nlspec *)p)) return 0; if (*((_DWORD *)p + 5) != 12) return ( const double *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)p + 33) + 64LL) + 8LL ...
static const double *mle_llt_callback(const double *b, int i, void *p) { nlspec *s = (nlspec *)p; int err; update_coeff_values(b, s); err = nl_calculate_fvec(s); if (err) { return NULL; } else if (s->lhtype == GRETL_TYPE_MATRIX) { s->lvec = get_matrix_by_name(s->lhname); if (s->lvec == NULL) {...
mle_llt_callback
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mle_scalar_check(nlspec *spec) { gretlopt opt; int err; err = 0; if (spec->lhtype == 6) { if ((spec->opt & 0x20000) != 0) { gretl_errmsg_set("Scalar loglikelihood: can't do QML"); err = 38; } else if ((spec->opt & 1) == 0) { opt = spec->opt; LOBYTE(opt) = opt | 0x80; s...
static int mle_scalar_check(nlspec *spec) { int err = 0; if (scalar_loglik(spec)) { if (spec->opt & OPT_R) { gretl_errmsg_set("Scalar loglikelihood: can't do QML"); err = E_BADOPT; } else if (!(spec->opt & OPT_A)) { spec->opt |= OPT_H; } if (analytic_mode(spec)) { spec->o...
mle_scalar_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mlogit_fcast(Forecast *fc, const MODEL *pmod, const DATASET *dset) { int i; int t; int miss; int k; const gretl_matrix *yvals; gretl_matrix *Xt; double xti; yvals = (const gretl_matrix *)gretl_model_get_data(pmod, "yvals"); if (!yvals) return 2; k = *pmod->list - 1; Xt = gretl_matrix_allo...
static int mlogit_fcast(Forecast *fc, const MODEL *pmod, const DATASET *dset) { const gretl_matrix *yvals; gretl_matrix *Xt; int k, i, vi, t; yvals = gretl_model_get_data(pmod, "yvals"); if (yvals == NULL) { return E_DATA; } k = pmod->list[0] - 1; Xt = gretl_matrix_alloc(1, k); if (Xt == NULL) {...
mlogit_fcast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mmask_row_count(const gretl_matrix *mask, const DATASET *dset) { int t; int m; m = 0; for (t = dset->t1; t <= dset->t2; ++t) { if (mask->val[t] != 0.0) ++m; } return m; }
static int mmask_row_count(const gretl_matrix *mask, const DATASET *dset) { int t, m = 0; for (t = dset->t1; t <= dset->t2; t++) { if (mask->val[t] != 0) { m++; } } return m; }
mmask_row_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void mn_logit_coeffsep(char *sep, const MODEL *pmod, const DATASET *dset, int i) { int v4; const char *vname; const gretl_matrix *y; vname = gretl_model_get_depvar_name(pmod, dset); y = (const gretl_matrix *)gretl_model_get_data(pmod, "yvals"); if (y) v4 = (int)y->val[i]; else ...
static void mn_logit_coeffsep(char *sep, const MODEL *pmod, const DATASET *dset, int i) { const char *vname = gretl_model_get_depvar_name(pmod, dset); const gretl_matrix *y = gretl_model_get_data(pmod, "yvals"); int val = (y != NULL) ? y->val[i] : i; sprintf(sep, "%s = %d", vname,...
mn_logit_coeffsep
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double mn_logit_loglik(const double *theta, void *ptr) { int i; int ia; int t; int yt; double x; double ll; ll = 0.0; *__errno_location() = 0; for (i = 0; i < *((_DWORD *)ptr + 2); ++i) *(double *)(*(_QWORD *)(*((_QWORD *)ptr + 6) + 8LL) + 8LL * i) = theta[i]; gretl_matrix_multiply(*((const gre...
static double mn_logit_loglik(const double *theta, void *ptr) { mnl_info *mnl = (mnl_info *)ptr; double x, xti, exti, ll = 0.0; int yt, i, t; errno = 0; for (i = 0; i < mnl->npar; i++) { mnl->b->val[i] = theta[i]; } gretl_matrix_multiply(mnl->X, mnl->b, mnl->Xb); for (t = 0; t < mnl->T; t++) { ...
mn_logit_loglik
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double mn_logit_prediction(const gretl_matrix *Xt, const double *b, const gretl_matrix *yvals) { int rows; int cols; int v6; int i; int j; int ja; int k; int pidx; int nx; int m; double St; double pmax; double *eXtb; pidx = 0; if (Xt) { if (Xt->cols == 1) { ...
double mn_logit_prediction(const gretl_matrix *Xt, const double *b, const gretl_matrix *yvals) { double *eXtb = NULL; double St, pj, pmax; int i, j, k, m, nx; int pidx = 0; nx = gretl_vector_get_length(Xt); m = gretl_vector_get_length(yvals); eXtb = malloc(m * sizeof *eXtb); ...
mn_logit_prediction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *mn_logit_probabilities(const MODEL *pmod, const DATASET *dset, int *err) { int rows; int v4; int i; int ia; int ib; int m; int j; int ja; int jb; int k; int t; int ok; gretl_matrix *P; double *eXbt; double St; const gretl_matrix *yvals; ...
gretl_matrix *mn_logit_probabilities(const MODEL *pmod, const DATASET *dset, int *err) { gretl_matrix *P = NULL; const gretl_matrix *yvals = NULL; double *eXbt = NULL; int i, m = 0; if (pmod == NULL || pmod->list == NULL || pmod->coeff == NULL) { *err = E_DATA; } ...
mn_logit_probabilities
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mn_logit_score(double *theta, double *s, int npar, BFGS_CRIT_FUNC ll, void *ptr) { double v5; int v6; int i; int ia; int ib; int j; int k; int t; int err; int yt; double x; double pti; double exti; err = 0; *__errno_location() = 0; for (i = 0; i < npar; ++i) s...
static int mn_logit_score(double *theta, double *s, int npar, BFGS_CRIT_FUNC ll, void *ptr) { mnl_info *mnl = (mnl_info *)ptr; double x, xti, exti, pti, p, g; int i, j, k, t, yt; int err = 0; errno = 0; for (i = 0; i < npar; i++) { s[i] = 0.0; } for (t = 0; t < mnl->T &&...
mn_logit_score
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void mn_logit_yhat(MODEL *pmod, mnl_info *mnl, const int *yvals) { int i; int s; int t; int yidx; int ncorrect; double pmax; ncorrect = 0; s = 0; for (t = pmod->t1; t <= pmod->t2; ++t) { if (fabs(pmod->yhat[t]) <= 1.797693134862316e308) { pmax = 0.0; yidx = 0; for (i = 0; i < mn...
static void mn_logit_yhat(MODEL *pmod, mnl_info *mnl, const int *yvals) { double p, pmax; int i, s, t, yidx; int ncorrect = 0; s = 0; for (t = pmod->t1; t <= pmod->t2; t++) { if (na(pmod->yhat[t])) { continue; } pmax = 0.0; yidx = 0; for (i = 0; i < mnl->n; i++) { p = gretl_ma...
mn_logit_yhat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mn_value_count(const double *y, MODEL *pmod, int **valcount, int **yvals) { int v5; double v6; int want_yvals; int s; int sa; int sb; int t; int ta; int n; int *v; int *vc; double *sy; want_yvals = 0; sy = (double *)malloc(8LL * pmod->nobs); if (sy) { s = 0; for (t = pmod->t1;...
static int mn_value_count(const double *y, MODEL *pmod, int **valcount, int **yvals) { double *sy; int *vc = NULL; int *v = NULL; int want_yvals = 0; int s, t, n; sy = malloc(pmod->nobs * sizeof *sy); if (sy == NULL) { pmod->errcode = E_ALLOC; return 0; } s = 0; f...
mn_value_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mnl_add_variance_matrix(MODEL *pmod, mnl_info *mnl, const DATASET *dset, gretlopt opt) { int err; gretl_matrix *G; gretl_matrix *H; unsigned long v10; v10 = __readfsqword(0x28u); H = 0; G = 0; err = 0; H = mnl_hessian_inverse(mnl, &err); if (err) return err; if...
static int mnl_add_variance_matrix(MODEL *pmod, mnl_info *mnl, const DATASET *dset, gretlopt opt) { gretl_matrix *H = NULL; gretl_matrix *G = NULL; int err = 0; H = mnl_hessian_inverse(mnl, &err); if (err) { return err; } if (opt & OPT_R) { G = mnl_score_matrix...
mnl_add_variance_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void mnl_finish(mnl_info *mnl, MODEL *pmod, const int *valcount, const int *yvals, const DATASET *dset, gretlopt opt) { int v6; gretlopt v7; int i; int ia; int ib; int j; int k; int df_0; int ni; double L0; gretl_matrix *yv; pmod->errcode = gretl_model_write_coeffs(pmod, mnl->th...
static void mnl_finish(mnl_info *mnl, MODEL *pmod, const int *valcount, const int *yvals, const DATASET *dset, gretlopt opt) { int i; pmod->errcode = gretl_model_write_coeffs(pmod, mnl->theta, mnl->npar); if (!pmod->errcode) { pmod->errcode = mnl_add_variance_matrix(pmod, mnl, dset, o...
mnl_finish
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mnl_hessian(double *theta, gretl_matrix *H, void *data) { double v4; int r; int c; int i; int j; int k; int t; gretl_matrix *x; gretl_matrix *xx; gretl_matrix *hjk; mnl_info *mnl; gretl_matrix_block *B; double ptj; double ptk; double xti; unsigned long v19; v19 = __readfsqword(0x2...
static int mnl_hessian(double *theta, gretl_matrix *H, void *data) { mnl_info *mnl = data; gretl_matrix_block *B; gretl_matrix *x; gretl_matrix *xx; gretl_matrix *hjk; double xti, ptj, ptk; int r, c; int i, j, k, t; B = gretl_matrix_block_new(&x, 1, mnl->k, &xx, mnl->k, mnl->k, &hjk, mnl->k, ...
mnl_hessian
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *mnl_hessian_inverse(mnl_info *mnl, int *err) { gretl_matrix *H; H = gretl_zero_matrix_new(mnl->npar, mnl->npar); if (H) *err = mnl_hessian(mnl->theta, H, mnl); else *err = 12; if (!*err) *err = gretl_invert_symmetric_matrix(H); return H; }
static gretl_matrix *mnl_hessian_inverse(mnl_info *mnl, int *err) { gretl_matrix *H; H = gretl_zero_matrix_new(mnl->npar, mnl->npar); if (H == NULL) { *err = E_ALLOC; } else { *err = mnl_hessian(mnl->theta, H, mnl); } if (!*err) { *err = gretl_invert_symmetric_matrix(H); } return H; }
mnl_hessian_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void mnl_info_destroy(mnl_info *mnl) { if (mnl) { gretl_matrix_block_destroy(mnl->B); free(mnl->theta); free(mnl); } }
static void mnl_info_destroy(mnl_info *mnl) { if (mnl != NULL) { gretl_matrix_block_destroy(mnl->B); free(mnl->theta); free(mnl); } }
mnl_info_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
mnl_info *mnl_info_new(int n, int k, int T) { int i; mnl_info *mnl; mnl = (mnl_info *)malloc(0x48u); if (mnl) { mnl->n = n; mnl->k = k; mnl->T = T; mnl->npar = n * k; mnl->theta = (double *)malloc(8LL * mnl->npar); if (!mnl->theta) { free(mnl); return 0; } mnl->B = g...
static mnl_info *mnl_info_new(int n, int k, int T) { mnl_info *mnl = malloc(sizeof *mnl); int i; if (mnl != NULL) { mnl->n = n; mnl->k = k; mnl->T = T; mnl->npar = k * n; mnl->theta = malloc(mnl->npar * sizeof *mnl->theta); if (mnl->theta == NULL) { free(mnl); return NULL; ...
mnl_info_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *mnl_model(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { double *v5; double *val; int v7; double *v8; double *v9; int v10; int v11; double v12; gretlopt v13; MODEL v15; PRN *prna; gretlopt opta; DATASET *dseta; const int *lista; ...
static MODEL mnl_model(const int *list, DATASET *dset, gretlopt opt, PRN *prn) { int maxit = 1000; int fncount = 0; int grcount = 0; MODEL mod; mnl_info *mnl; int *valcount = NULL; int *yvals = NULL; int n, k = list[0] - 1; gretlopt maxopt; int use_bfgs = 0; int i, vi, t, s; mod = lsq(list, dse...
mnl_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *mnl_score_matrix(mnl_info *mnl, int *err) { double v3; int v4; int i; int j; int k; int t; int yt; gretl_matrix *G; double p; G = gretl_matrix_alloc(mnl->T, mnl->npar); if (G) { for (t = 0; t < mnl->T; ++t) { yt = (int)mnl->y->val[t]; k = 0; for (i = 0; i < mnl...
static gretl_matrix *mnl_score_matrix(mnl_info *mnl, int *err) { gretl_matrix *G; double p, g; int yt, i, j, k, t; G = gretl_matrix_alloc(mnl->T, mnl->npar); if (G == NULL) { *err = E_ALLOC; return NULL; } for (t = 0; t < mnl->T; t++) { yt = gretl_vector_get(mnl->y, t); k = 0; for (i...
mnl_score_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void mod_and_freq(cmplx *c, double *mod, double *frq) { if (c->i == 0.0) *mod = fabs(c->r); else *mod = sqrt(c->r * c->r + c->i * c->i); *frq = atan2(c->i, c->r) / 6.283185307179586; }
static void mod_and_freq(cmplx *c, double *mod, double *frq) { if (c->i != 0) { *mod = sqrt(c->r * c->r + c->i * c->i); } else { *mod = fabs(c->r); } *frq = atan2(c->i, c->r) / M_2PI; }
mod_and_freq
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *mod_strdup(const char *s) { int v2; int v3; int i; int ia; int bs; int j; long n; char *ret; n = (unsigned int)strlen(s); bs = 0; for (i = 0; i < (int)n; ++i) { if (s[i] == 92 && (i == (_DWORD)n - 1 || s[i + 1] != 92)) ++bs; } ret = (char *)malloc((int)n + 1 + bs); if (!ret)...
static char *mod_strdup(const char *s) { char *ret = NULL; int i, n = strlen(s); int bs = 0; for (i = 0; i < n; i++) { if (s[i] == '\\' && (i == n - 1 || s[i + 1] != '\\')) { bs++; } } ret = malloc(n + 1 + bs); if (ret == NULL) { return NULL; } if (bs == 0) { strcpy(ret, s); ...
mod_strdup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_add_missmask(MODEL *pmod, int n) { pmod->missmask = (char *)malloc(n + 1); if (!pmod->missmask) return 12; memset(pmod->missmask, 48, n); pmod->missmask[n] = 0; return 0; }
int model_add_missmask(MODEL *pmod, int n) { pmod->missmask = malloc((n + 1) * sizeof *pmod->missmask); if (pmod->missmask == NULL) { return E_ALLOC; } else { memset(pmod->missmask, '0', n); pmod->missmask[n] = 0; return 0; } }
model_add_missmask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_add_mterms_array(MODEL *pmod, midas_term *mterms, int nmidas) { int v3; int v4; int v5; int v6; int v7; int v8; int v9; int err; int i; gretl_array *A; gretl_bundle *b; midas_term *mt; unsigned long v17; v17 = __readfsqword(0x28u); err = 0; A = gretl_array_new(GRETL_TYPE_BUNDL...
static int model_add_mterms_array(MODEL *pmod, midas_term *mterms, int nmidas) { gretl_array *A; int err = 0; A = gretl_array_new(GRETL_TYPE_BUNDLES, nmidas, &err); if (A != NULL) { midas_term *mt; gretl_bundle *b; int i; for (i = 0; i < nmidas && !err; i++) { b = gretl_bundle_new(); ...
model_add_mterms_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_adjust_sample(MODEL *pmod, int n, const double **Z, int *misst) { int i; int ia; int ib; int ic; int t; int ta; int tb; int tc; int dwt; int t1min; int t2max; int missobs; int missobsa; int missobsb; int ret; int move_ends; int vi; int via; int vib; int vic; dwt = 0;...
int model_adjust_sample(MODEL *pmod, int n, const double **Z, int *misst) { int i, t, dwt = 0, t1min = pmod->t1, t2max = pmod->t2; int vi, missobs, ret = 0; int move_ends = 1; if (gretl_model_get_int(pmod, "wt_dummy")) { dwt = pmod->nwt; } for (t = t1min; t < t2max; t++) { missobs = 0; for (i...
model_adjust_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_coeff_init(model_coeff *mc) { mc->b = NAN; mc->se = NAN; mc->tval = NAN; mc->pval = NAN; mc->slope = NAN; mc->hi = NAN; mc->lo = mc->hi; mc->show_tval = 1; mc->show_pval = 1; mc->df_pval = 0; mc->multi = 0; mc->name[0] = 0; }
void model_coeff_init(model_coeff *mc) { mc->b = NADBL; mc->se = NADBL; mc->tval = NADBL; mc->pval = NADBL; mc->slope = NADBL; mc->lo = mc->hi = NADBL; mc->show_tval = 1; mc->show_pval = 1; mc->df_pval = 0; mc->multi = 0; mc->name[0] = '\0'; }
model_coeff_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double model_coeff_pval(const MODEL *pmod, double x) { int dfd; int k; double p; p = NAN; if (fabs(x) <= 1.797693134862316e308) { if (model_use_zscore(pmod)) { return normal_pvalue_2(x); } else if (pmod->ci == 5) { k = *pmod->arinfo->arlist; dfd = pmod->dfd; if (k > 1) ...
double model_coeff_pval(const MODEL *pmod, double x) { double p = NADBL; if (!na(x)) { if (model_use_zscore(pmod)) { p = normal_pvalue_2(x); } else if (pmod->ci == AR) { int k = pmod->arinfo->arlist[0]; int dfd = pmod->dfd; if (k > 1) { dfd += pmod->ncoeff - k; } ...
model_coeff_pval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_count_minus(MODEL *pmod) { if (pmod) { if (pmod->ID > 0) { gretl_model_count = pmod->ID - 1; pmod->ID = 0; } } else { --gretl_model_count; } }
void model_count_minus(MODEL *pmod) { if (pmod == NULL) { --gretl_model_count; } else if (pmod->ID > 0) { gretl_model_count = pmod->ID - 1; pmod->ID = 0; } }
model_count_minus
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_count_plus() { return ++gretl_model_count; }
int model_count_plus(void) { return ++gretl_model_count; }
model_count_plus
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_data_items_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod, int fixopt) { int n_items; int err; int nelem; int got_vcv; int ignore_err; int gots; int t; char *key; char *typestr; char *s; xmlNodePtr cur; xmlNodePtr child; gretl_matrix *m; cmplx *c...
static int model_data_items_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod, int fixopt) { xmlNodePtr cur; int n_items; int got_vcv = 0; int err = 0; if (!gretl_xml_get_prop_as_int(node, "count", &n_items)) { return 1; } cur = node->xmlChildrenNode; while...
model_data_items_from_xml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_depvar_stats(MODEL *pmod, DATASET *dset) { double v2; double v3; int t; int ta; int tb; _BOOL4 zw; _BYTE yno[12]; double xx; *(_DWORD *)&yno[8] = 0; *(_QWORD *)yno = *((unsigned int *)pmod->list + 1); zw = 0; if (pmod->ci == 140) zw = gretl_model_get_int(pmod, "wt_zeros") != 0; ...
static void model_depvar_stats(MODEL *pmod, DATASET *dset) { double xx, sum = 0.0; int yno = pmod->list[1]; int t, zw = 0; if (pmod->ci == WLS && gretl_model_get_int(pmod, "wt_zeros")) { zw = 1; } pmod->ybar = pmod->sdy = NADBL; if (pmod->nobs <= 0) { return; } for (t = pmod->t1; t <= pmo...
model_depvar_stats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_do_forecast(const char *str, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { gretlopt opta; int t1; int t2; int k; int os_case; int err; gretlopt printopt; FITRESID *fr; char vname[40]; unsigned long v17; opta = opt; v17 = __readfsqword(0x28u); fr = 0; ...
static int model_do_forecast(const char *str, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { char vname[VNAMELEN]; FITRESID *fr = NULL; int t1, t2, k = -1; int os_case = 0; int err; if (pmod->ci == HECKIT || pmod->ci == DURATION) { return E_NOTIMP; } if (pmod->...
model_do_forecast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_error_dist(const MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int err; gretlopt fopt; int save_t1; int save_t2; FreqDist *freq; unsigned long v12; v12 = __readfsqword(0x28u); freq = 0; fopt = OPT_Z; save_t1 = dset->t1; save_t2 = dset->t2; err = 0; if (!pmod || !pmod->uhat) ...
int model_error_dist(const MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { FreqDist *freq = NULL; gretlopt fopt = OPT_Z; int save_t1 = dset->t1; int save_t2 = dset->t2; int err = 0; if (pmod == NULL || pmod->uhat == NULL) { return E_DATA; } err = gretl_model_get_normality_test(pmod, prn); ...
model_error_dist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_format_end(PRN *prn) { if (tex_format(prn)) { pputs(prn, "\n\\end{center}\n"); if (tex_doc_format(prn)) pputs(prn, "\n\\end{document}\n"); } else if (rtf_doc_format(prn)) { pputs(prn, "\n}\n"); } }
static void model_format_end(PRN *prn) { if (tex_format(prn)) { pputs(prn, "\n\\end{center}\n"); if (tex_doc_format(prn)) { pputs(prn, "\n\\end{document}\n"); } } else if (rtf_doc_format(prn)) { pputs(prn, "\n}\n"); } }
model_format_end
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_format_start(PRN *prn) { if (tex_format(prn)) { if (tex_doc_format(prn)) gretl_tex_preamble(prn, 0); pputs(prn, "\\begin{center}\n"); } else if (rtf_format(prn)) { gretl_print_set_has_minus(prn); if (rtf_doc_format(prn)) pputs(prn, "{\\rtf1\\par\n\\qc "); else pputs(...
static void model_format_start(PRN *prn) { if (tex_format(prn)) { if (tex_doc_format(prn)) { gretl_tex_preamble(prn, 0); } pputs(prn, "\\begin{center}\n"); } else if (rtf_format(prn)) { gretl_print_set_has_minus(prn); if (rtf_doc_format(prn)) { pputs(prn, "{\\rtf1\\par\n\\qc "); ...
model_format_start
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_free_storage(MODEL *pmod) { free(pmod->xpx); free(pmod->coeff); free(pmod->sderr); pmod->xpx = 0; pmod->coeff = 0; pmod->sderr = 0; }
static void model_free_storage(MODEL *pmod) { free(pmod->xpx); free(pmod->coeff); free(pmod->sderr); pmod->xpx = NULL; pmod->coeff = NULL; pmod->sderr = NULL; }
model_free_storage
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *model_from_nlspec(MODEL *__return_ptr retstr, nlspec *spec, DATASET *dset, gretlopt opt, PRN *prn) { real_nl_model(retstr, spec, dset, opt, prn); return retstr; }
MODEL model_from_nlspec(nlspec *spec, DATASET *dset, gretlopt opt, PRN *prn) { return real_nl_model(spec, dset, opt, prn); }
model_from_nlspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *model_get_estvec(const MODEL *pmod, int idx, int *err) { double *coeff; int i; gretl_matrix *v; const double *src; if (gretl_model_get_data(pmod, "rq_tauvec")) { *err = 30; return 0; } else { if (idx == 62) coeff = pmod->coeff; else coeff = pmod->sderr; src = c...
static gretl_matrix *model_get_estvec(const MODEL *pmod, int idx, int *err) { const double *src; gretl_matrix *v = NULL; int i; if (gretl_model_get_data(pmod, "rq_tauvec")) { *err = E_BADSTAT; return NULL; } src = (idx == M_COEFF) ? pmod->coeff : pmod->sderr; if (src == NULL) { *err = E_BAD...
model_get_estvec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *model_get_hatvec(const MODEL *pmod, int idx, int *err) { int t; int ta; gretl_matrix *v; const double *src; v = 0; src = 0; switch (idx) { case '6': src = pmod->uhat; break; case '7': src = pmod->yhat; break; case '8': src = (const double *)gretl_model_get_data(pmo...
static gretl_matrix *model_get_hatvec(const MODEL *pmod, int idx, int *err) { gretl_matrix *v = NULL; const double *src = NULL; int t; if (idx == M_UHAT) { src = pmod->uhat; } else if (idx == M_YHAT) { src = pmod->yhat; } else if (idx == M_LLT) { src = gretl_model_get_data(pmod, "llt"); } ...
model_get_hatvec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *model_get_intervals_matrix(const MODEL *pmod, int *err) { gretl_matrix *ci; gretl_matrix *m; ci = (gretl_matrix *)gretl_model_get_data(pmod, "coeff_intervals"); if (ci) { m = gretl_matrix_copy(ci); if (!m) *err = 12; return m; } else { *err = 30; return 0; } }
static gretl_matrix *model_get_intervals_matrix(const MODEL *pmod, int *err) { gretl_matrix *m, *ci; ci = gretl_model_get_data(pmod, "coeff_intervals"); if (ci == NULL) { *err = E_BADSTAT; return NULL; } m = gretl_matrix_copy(ci); if (m == NULL) { *err = E_ALLOC; } return m; }
model_get_intervals_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *model_get_rhovec(const MODEL *pmod, int *err) { int i; int l0; gretl_matrix *r; double x; r = 0; if (pmod->ci == 6) { x = gretl_model_get_double(pmod, "rho_gls"); return gretl_matrix_from_scalar(x); } else if (pmod->ci == 5) { if (pmod->arinfo && pmod->arinfo->arlist && pmod->ar...
static gretl_matrix *model_get_rhovec(const MODEL *pmod, int *err) { gretl_matrix *r = NULL; if (pmod->ci == AR1) { double x = gretl_model_get_double(pmod, "rho_gls"); r = gretl_matrix_from_scalar(x); } else if (pmod->ci != AR) { r = gretl_matrix_from_scalar(pmod->rho); } else if (pmod->arinfo == ...
model_get_rhovec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *model_get_special_test(const MODEL *pmod, int type, int *err) { ModelTest *tests; int i; _BOOL4 found; gretl_matrix *r; r = 0; found = 0; for (i = 0; i < pmod->ntests; ++i) { tests = pmod->tests; found = type == tests[i].type; if (type == tests[i].type) { r = gretl_matrix_...
static gretl_matrix *model_get_special_test(const MODEL *pmod, int type, int *err) { gretl_matrix *r = NULL; int i, found = 0; for (i = 0; i < pmod->ntests; i++) { found = (pmod->tests[i].type == type); if (found) { r = gretl_vector_alloc(3); if (r ...
model_get_special_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *model_get_special_vec(const MODEL *pmod, ModelDataIndex idx, int *err) { int t; double *mdata; gretl_matrix *v; mdata = 0; if (idx == M_AHAT) { mdata = (double *)gretl_model_get_data(pmod, "ahat"); } else if (idx == M_H) { mdata = (double *)gretl_mo...
static gretl_matrix *model_get_special_vec(const MODEL *pmod, ModelDataIndex idx, int *err) { gretl_matrix *v = NULL; double *mdata = NULL; int t; if (idx == M_AHAT) { mdata = gretl_model_get_data(pmod, "ahat"); } else if (idx == M_H) { mdata = gretl_model_g...
model_get_special_vec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_has_missing_obs(const MODEL *pmod) { return pmod->t2 - pmod->t1 + 1 > pmod->nobs; }
int model_has_missing_obs(const MODEL *pmod) { int sample = pmod->t2 - pmod->t1 + 1; return (pmod->nobs < sample); }
model_has_missing_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_is_in_loop(const MODEL *pmod) { int i; LOOPSET *loop; for (loop = currloop; loop; loop = loop->parent) { for (i = 0; i < loop->n_models; ++i) { if (pmod == loop->models[i]) return 1; } } return 0; }
int model_is_in_loop(const MODEL *pmod) { LOOPSET *loop = currloop; int i; while (loop != NULL) { for (i = 0; i < loop->n_models; i++) { if (pmod == loop->models[i]) { return 1; } } loop = loop->parent; } return 0; }
model_is_in_loop
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_is_protected(MODEL *pmod) { int i; int prot; prot = 0; for (i = 0; i < n_prot; ++i) { if (pmod == protected_models[i]) { prot = 1; break; } } if (!prot) return model_is_in_loop(pmod); return prot; }
static int model_is_protected(MODEL *pmod) { int i, prot = 0; for (i = 0; i < n_prot; i++) { if (pmod == protected_models[i]) { prot = 1; break; } } if (!prot) { prot = model_is_in_loop(pmod); } #if ODEBUG if (prot) { fprintf(stderr, "model at %p is protected\n", (void *)pmod)...
model_is_protected
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_is_quadratic(const MODEL *pmod, const int *xlist, const DATASET *dset) { int t; const double *x1; const double *x2; x1 = dset->Z[xlist[2]]; x2 = dset->Z[xlist[3]]; for (t = pmod->t1; t <= pmod->t2; ++t) { if (fabs(x1[t]) <= 1.797693134862316e308 && xneq(x2[t], x1[t] * x...
static int model_is_quadratic(const MODEL *pmod, const int *xlist, const DATASET *dset) { const double *x1 = dset->Z[xlist[2]]; const double *x2 = dset->Z[xlist[3]]; int t; for (t = pmod->t1; t <= pmod->t2; t++) { if (!na(x1[t]) && xneq(x2[t], x1[t] * x1[t])) { return 0;...
model_is_quadratic
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_lags(const int *list, const DATASET *dset, int *pmax) { int maxlag; int i; int ret; int yno; int xno; int ilag; yno = list[1]; maxlag = 0; ret = 0; for (i = 2; i <= *list; ++i) { xno = list[i]; if (xno == -100) break; ilag = series_get_lag(dset, xno); if (ilag > 0) {...
static int model_lags(const int *list, const DATASET *dset, int *pmax) { int xno, yno = list[1]; int ilag, maxlag = 0; int i, ret = 0; for (i = 2; i <= list[0]; i++) { xno = list[i]; if (xno == LISTSEP) { break; } ilag = series_get_lag(dset, xno); if (ilag > 0) { if (ret == 0 &&...
model_lags
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_list_to_string(int *list, char *buf) { int i; char numstr[8]; unsigned long v4; v4 = __readfsqword(0x28u); for (i = 1; i <= *list; ++i) { if (list[i] == -100) { strcpy(&buf[strlen(buf)], "; "); } else { sprintf(numstr, "%d ", list[i]); strcat(buf, numstr); } } }
void model_list_to_string(int *list, char *buf) { char numstr[8]; int i; for (i = 1; i <= list[0]; i++) { if (list[i] == LISTSEP) { strcat(buf, "; "); } else { sprintf(numstr, "%d ", list[i]); strcat(buf, numstr); } } }
model_list_to_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_make_clustered_GG(MODEL *pmod, int ci, const gretl_matrix *G, gretl_matrix *GG, const DATASET *dset, int *pcvar, int *pnc) { int rows; int err; int i; int j; int t; int s; int n_c; int k; int cvar; gretl_matrix *cvals; gretl_matrix ...
static int model_make_clustered_GG(MODEL *pmod, int ci, const gretl_matrix *G, gretl_matrix *GG, const DATASET *dset, int *pcvar, int *pnc) { gretl_matrix *cvals = NULL; gretl_matrix *Gi = NULL; const double *cZ = NULL; const char *cname; i...
model_make_clustered_GG
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_missing(const MODEL *pmod, int t) { return pmod->missmask && pmod->missmask[t] == 49; }
int model_missing(const MODEL *pmod, int t) { if (pmod->missmask != NULL) { return pmod->missmask[t] == '1'; } else { return 0; } }
model_missing
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *model_missmask(const int *list, int t1, int t2, int n, const double **Z, int dwt, int *misscount) { int i; int vi; char *mask; mask = (char *)malloc(n + 1); if (!mask) return 0; memset(mask, 48, n); mask[n] = 0; if (misscount) *misscount = 0; while (t1 <= t2) { ...
static char *model_missmask(const int *list, int t1, int t2, int n, const double **Z, int dwt, int *misscount) { char *mask; int i, vi, t; mask = malloc(n + 1); if (mask == NULL) { return NULL; } memset(mask, '0', n); mask[n] = 0; #if MASKDEBUG fprintf(stderr, "model_m...
model_missmask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_missval_count(const MODEL *pmod) { int mc; int t; mc = 0; if (pmod->missmask) { for (t = pmod->t1; t <= pmod->t2; ++t) { if (pmod->missmask[t] == 49) ++mc; } } return mc; }
static int model_missval_count(const MODEL *pmod) { int mc = 0; if (pmod->missmask != NULL) { int t; for (t = pmod->t1; t <= pmod->t2; t++) { if (pmod->missmask[t] == '1') { mc++; } } } return mc; }
model_missval_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_print_driver(MODEL *pmod, DATASET *dset, int ci, const char *param, gretlopt opt, PRN *prn) { const char *v6; char *v7; gretlopt opta; int err; gretlopt texopt; const char *s; char fname[4104]; unsigned long v17; opta = opt; v17 = __readfsqword(0x28u); err = incom...
static int model_print_driver(MODEL *pmod, DATASET *dset, int ci, const char *param, gretlopt opt, PRN *prn) { int err = incompatible_options(opt, OPT_R | OPT_C); if (!err) { char fname[FILENAME_MAX]; *fname = '\0'; if (param != NULL) { strcpy(fname, param); }...
model_print_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_sample_problem(const MODEL *pmod, const DATASET *dset) { char *v2; char *v3; char *v4; int ret; ret = 1; if (pmod->ci != 93 || (pmod->opt & 2) == 0) { if (pmod->submask) { if (dset->submask) { if (submasks_match(dset, pmod)) { return 0; } else { v4 = ...
int model_sample_problem(const MODEL *pmod, const DATASET *dset) { int ret = 1; if (pmod->ci == PANEL && (pmod->opt & OPT_B)) { ; } else if (pmod->submask == NULL) { if (dset->submask == NULL) { ret = 0; } else { fputs("dataset is subsampled, model is not\n", stderr); gretl_errmsg...
model_sample_problem
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_stats_init(MODEL *pmod) { int i; pmod->tss = NAN; pmod->ess = pmod->tss; pmod->sigma = NAN; pmod->adjrsq = NAN; pmod->rsq = pmod->adjrsq; pmod->chisq = NAN; pmod->fstt = pmod->chisq; pmod->lnL = NAN; pmod->sdy = NAN; pmod->ybar = pmod->sdy; pmod->rho = NAN; pmod->dw = pmod->rho; ...
static void model_stats_init(MODEL *pmod) { int i; pmod->ess = pmod->tss = NADBL; pmod->sigma = NADBL; pmod->rsq = pmod->adjrsq = NADBL; pmod->fstt = pmod->chisq = NADBL; pmod->lnL = NADBL; pmod->ybar = pmod->sdy = NADBL; pmod->dw = pmod->rho = NADBL; for (i = 0; i < C_MAX; i++) { pmod->criterio...
model_stats_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_submask_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod) { int err; char *mask[2]; mask[1] = (char *)__readfsqword(0x28u); err = gretl_xml_get_submask(node, doc, mask); if (!err) pmod->submask = mask[0]; return err; }
static int model_submask_from_xml(xmlNodePtr node, xmlDocPtr doc, MODEL *pmod) { char *mask; int err; err = gretl_xml_get_submask(node, doc, &mask); if (!err) { pmod->submask = mask; } return err; }
model_submask_from_xml
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_test_check(CMD *cmd, DATASET *dset, PRN *prn) { int err; err = last_model_test_ok(cmd->ci, cmd->opt, dset, prn); if (err == 2 && cmd->ci == 110 && has_param(cmd) && get_anonymous_equation_system()) { gretl_error_clear(); return 0; } return err; }
static int model_test_check(CMD *cmd, DATASET *dset, PRN *prn) { int err = last_model_test_ok(cmd->ci, cmd->opt, dset, prn); if (err == E_DATA && cmd->ci == RESTRICT && has_param(cmd)) { if (get_anonymous_equation_system() != NULL) { gretl_error_clear(); err = 0; } } return err; }
model_test_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_test_driver(int order, DATASET *dset, gretlopt opt, PRN *prn) { int pd; GretlObjType type; gretlopt testopt; int k; int err; void *ptr; unsigned long v13; v13 = __readfsqword(0x28u); testopt = OPT_NONE; k = 0; err = 0; if (opt == OPT_NONE || opt == OPT_Q || opt == OPT_I) { pprintf...
int model_test_driver(int order, DATASET *dset, gretlopt opt, PRN *prn) { GretlObjType type; gretlopt testopt = OPT_NONE; void *ptr; int k = 0; int err = 0; if (opt == OPT_NONE || opt == OPT_Q || opt == OPT_I) { pprintf(prn, "modtest: no options selected\n"); return 0; } err = incompatible_op...
model_test_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_free(ModelTest *test) { free(test->param); free(test); }
void model_test_free(ModelTest *test) { free(test->param); free(test); }
model_test_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
ModelTest *model_test_new(ModelTestType ttype) { ModelTest *test; test = (ModelTest *)malloc(0x48u); if (test) gretl_test_init(test, ttype); return test; }
ModelTest *model_test_new(ModelTestType ttype) { ModelTest *test = malloc(sizeof *test); if (test != NULL) { gretl_test_init(test, ttype); } return test; }
model_test_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_test_ok(int ci, gretlopt opt, const MODEL *pmod, const DATASET *dset) { int cia; int ok; cia = ci; ok = command_ok_for_model(ci, opt, pmod); if (ci == 77) cia = 85; if (ok && pmod->missmask && !gretl_is_regular_panel_model(pmod) && (cia == 21 || cia == 9 || cia == 81 &...
int model_test_ok(int ci, gretlopt opt, const MODEL *pmod, const DATASET *dset) { int ok = command_ok_for_model(ci, opt, pmod); if (ci == MIDASREG) { ci = NLS; } if (ok && pmod->missmask != NULL) { if (gretl_is_regular_panel_model(pmod)) { ; } else if (ci == CUSUM || ci ==...
model_test_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_allocated_param(ModelTest *test, char *s) { test->param = s; }
void model_test_set_allocated_param(ModelTest *test, char *s) { test->param = s; }
model_test_set_allocated_param
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_crit_and_alpha(ModelTest *test, double crit, double alpha) { test->crit = crit; test->alpha = alpha; }
void model_test_set_crit_and_alpha(ModelTest *test, double crit, double alpha) { test->crit = crit; test->alpha = alpha; }
model_test_set_crit_and_alpha
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_dfd(ModelTest *test, double df_0) { test->dfd = df_0; }
void model_test_set_dfd(ModelTest *test, double df) { test->dfd = df; }
model_test_set_dfd
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_dfn(ModelTest *test, int df_0) { test->dfn = df_0; }
void model_test_set_dfn(ModelTest *test, int df) { test->dfn = df; }
model_test_set_dfn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_opt(ModelTest *test, gretlopt opt) { test->opt = opt; }
void model_test_set_opt(ModelTest *test, gretlopt opt) { test->opt = opt; }
model_test_set_opt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_order(ModelTest *test, int order) { test->order = order; }
void model_test_set_order(ModelTest *test, int order) { test->order = order; }
model_test_set_order
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_param(ModelTest *test, const char *s) { test->param = gretl_strdup(s); }
void model_test_set_param(ModelTest *test, const char *s) { test->param = gretl_strdup(s); }
model_test_set_param
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_pvalue(ModelTest *test, double pval) { test->pvalue = pval; }
void model_test_set_pvalue(ModelTest *test, double pval) { test->pvalue = pval; }
model_test_set_pvalue
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_teststat(ModelTest *test, unsigned char ts) { test->teststat = ts; }
void model_test_set_teststat(ModelTest *test, unsigned char ts) { test->teststat = ts; }
model_test_set_teststat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void model_test_set_value(ModelTest *test, double val) { test->value = val; }
void model_test_set_value(ModelTest *test, double val) { test->value = val; }
model_test_set_value
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_tests_differ(ModelTest *mt1, ModelTest *mt2) { if (mt1->type != mt2->type) return 1; if (mt1->order != mt2->order) return 1; if (mt1->teststat != mt2->teststat) return 1; if (test_params_differ(mt1->param, mt2->param)) return 1; return testvals_differ(mt1->value, mt2->value) != 0; }
static int model_tests_differ(ModelTest *mt1, ModelTest *mt2) { int ret = 0; if (mt1->type != mt2->type) { ret = 1; } else if (mt1->order != mt2->order) { ret = 1; } else if (mt1->teststat != mt2->teststat) { ret = 1; } else if (test_params_differ(mt1->param, mt2->param)) { ret = 1; } else ...
model_tests_differ
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_use_zscore(const MODEL *pmod) { if (!pmod) return 1; if (gretl_model_get_int(pmod, "dfcorr")) return 0; if (pmod->ci == 88 && (pmod->opt & 0x2000) != 0) return 1; if (pmod->ci == 8 || pmod->ci == 28 || pmod->ci == 30 || pmod->ci == 47 || pmod->ci == 49 || pmod->ci == 52 || pmod->ci =...
int model_use_zscore(const MODEL *pmod) { if (pmod == NULL) { return 1; } else if (gretl_model_get_int(pmod, "dfcorr")) { return 0; } else if (pmod->ci == OLS && (pmod->opt & OPT_N)) { return 1; } else if (ASYMPTOTIC_MODEL(pmod->ci)) { return 1; } else if (pmod->ci == PANEL && (pmod->opt & ...
model_use_zscore
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int model_var_count() { int i; for (i = 0; mvars[i].id; ++i) ; return i; }
int model_var_count(void) { int i; for (i = 0; mvars[i].id != 0; i++) ; return i; }
model_var_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0