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 optimizer_get_matrix_name(const char *fncall, char *name) {
int err;
int n;
char *s;
const char *sa;
const char *sb;
s = strchr(fncall, 40);
err = 0;
if (!s)
return 2;
sa = &s[strspn(s + 1, " ") + 1];
if (*sa != 38)
return 37;
sb = sa + 1;
n = gretl_namechar_spn(sb);
if (n > 31)
... | int optimizer_get_matrix_name(const char *fncall, char *name) {
const char *s = strchr(fncall, '(');
int n, err = 0;
if (s == NULL) {
err = E_DATA;
} else {
s++;
s += strspn(s, " ");
if (*s != '&') {
err = E_TYPES;
} else {
s++;
n = gretl_namechar_spn(s);
if (n >= VN... | optimizer_get_matrix_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int option_parm_status(int ci, gretlopt opt) {
int i;
int got_ci;
got_ci = 0;
for (i = 0; gretl_opts[i].ci; ++i) {
if (ci == gretl_opts[i].ci) {
if (opt == gretl_opts[i].o)
return gretl_opts[i].parminfo;
got_ci = 1;
} else if (got_ci) {
return 0;
}
}
return 0;
} | static int option_parm_status(int ci, gretlopt opt) {
int i, got_ci = 0;
for (i = 0; gretl_opts[i].ci != 0; i++) {
if (gretl_opts[i].ci == ci) {
if (gretl_opts[i].o == opt) {
return gretl_opts[i].parminfo;
}
got_ci = 1;
} else if (got_ci) {
break;
}
}
return 0;
} | option_parm_status | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int option_prereq_missing(gretlopt opt, gretlopt test, gretlopt prereq) {
if ((test & opt) == 0 || (prereq & opt) != 0)
return 0;
else
return 38;
} | int option_prereq_missing(gretlopt opt, gretlopt test, gretlopt prereq) {
if (opt & test) {
if (!(opt & prereq)) {
return E_BADOPT;
}
}
return 0;
} | option_prereq_missing | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void option_printing_cleanup() {
gretl_print_destroy(flagprn);
flagprn = 0;
} | void option_printing_cleanup(void) {
gretl_print_destroy(flagprn);
flagprn = NULL;
} | option_printing_cleanup | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *optional_bundle_get(gretl_bundle *b, const char *key, double *px,
int *err) {
const char *s;
s = 0;
if (!*err) {
if (px)
*px = gretl_bundle_get_scalar(b, key, err);
else
s = gretl_bundle_get_string(b, key, err);
if (*err == 2) {
gretl_erro... | static const char *optional_bundle_get(gretl_bundle *b, const char *key,
double *px, int *err) {
const char *s = NULL;
if (!*err) {
if (px != NULL) {
*px = gretl_bundle_get_scalar(b, key, err);
} else {
s = gretl_bundle_get_string(b, key, err);
}
... | optional_bundle_get | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int options_incompatible_with(gretlopt opt, gretlopt base, gretlopt test) {
if ((base & opt) != 0 && (test & opt) != 0)
return 38;
else
return 0;
} | int options_incompatible_with(gretlopt opt, gretlopt base, gretlopt test) {
if (opt & base) {
if (opt & test) {
return E_BADOPT;
}
}
return 0;
} | options_incompatible_with | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int ordered_depvar_check(int v, const DATASET *dset) {
char *v2;
char *v3;
if (series_is_discrete(dset, v) ||
gretl_is_oprobit_ok(dset->t1, dset->t2, dset->Z[v]))
return 0;
v2 = dset->varname[v];
v3 = gettext("The variable '%s' is not discrete");
gretl_errmsg_sprintf(v3, v2);
return 2;
} | static int ordered_depvar_check(int v, const DATASET *dset) {
if (!series_is_discrete(dset, v) &&
!gretl_is_oprobit_ok(dset->t1, dset->t2, dset->Z[v])) {
gretl_errmsg_sprintf(_("The variable '%s' is not discrete"),
dset->varname[v]);
return E_DATA;
}
return 0;
} | ordered_depvar_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *ordered_estimate(MODEL *__return_ptr retstr, int *list, DATASET *dset,
int ci, gretlopt opt, PRN *prn) {
MODEL v7;
PRN *prna;
gretlopt opta;
int cia;
DATASET *dseta;
int *lista;
MODEL *v13;
int ymin;
int ndum;
int orig_v;
double *orig_y;
int *dumlist;
int *biglis... | static MODEL ordered_estimate(int *list, DATASET *dset, int ci, gretlopt opt,
PRN *prn) {
MODEL model;
int orig_v = dset->v;
double *orig_y = NULL;
int *biglist = NULL;
int *dumlist = NULL;
int ymin = 0;
int ndum = 0;
gretl_model_init(&model, dset);
model.errcode = order... | ordered_estimate | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int ordered_hessian(op_container *OC, gretl_matrix *H) {
double v3;
int i;
int j;
int ja;
int err;
int k;
double *g0;
double ti;
double dx2;
k = OC->k;
err = 0;
g0 = (double *)malloc(8LL * k);
if (!g0)
return 12;
for (i = 0; i < k; ++i) {
ti = OC->theta[i];
if (fabs(ti) <= 0.001... | static int ordered_hessian(op_container *OC, gretl_matrix *H) {
double smal = 1.0e-09;
double dx, dx2;
double ti, x, ll, *g0;
int i, j, k = OC->k;
int err = 0;
g0 = malloc(k * sizeof *g0);
if (g0 == NULL) {
return E_ALLOC;
}
for (i = 0; i < k; i++) {
ti = OC->theta[i];
dx = (fabs(ti) > 0... | ordered_hessian | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *ordered_hessian_inverse(op_container *OC, int *err) {
gretl_matrix *H;
H = gretl_zero_matrix_new(OC->k, OC->k);
if (H)
*err = ordered_hessian(OC, H);
else
*err = 12;
if (!*err) {
*err = gretl_invert_symmetric_matrix(H);
if (*err)
fwrite("ordered_hessian_inverse: inversion ... | static gretl_matrix *ordered_hessian_inverse(op_container *OC, int *err) {
gretl_matrix *H = gretl_zero_matrix_new(OC->k, OC->k);
if (H == NULL) {
*err = E_ALLOC;
} else {
*err = ordered_hessian(OC, H);
}
if (!*err) {
*err = gretl_invert_symmetric_matrix(H);
if (*err) {
fprintf(stderr,... | ordered_hessian_inverse | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *ordered_logit(MODEL *__return_ptr retstr, int *list, DATASET *dset,
gretlopt opt, PRN *prn) {
if ((opt & 0x200000) == 0)
prn = 0;
ordered_estimate(retstr, list, dset, 70, opt, prn);
return retstr;
} | MODEL ordered_logit(int *list, DATASET *dset, gretlopt opt, PRN *prn) {
PRN *vprn = (opt & OPT_V) ? prn : NULL;
return ordered_estimate(list, dset, LOGIT, opt, vprn);
} | ordered_logit | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int ordered_model(const MODEL *pmod) {
return (pmod->ci == 102 || pmod->ci == 70) &&
gretl_model_get_int(pmod, "ordered");
} | static int ordered_model(const MODEL *pmod) {
if (pmod->ci == PROBIT || pmod->ci == LOGIT) {
if (gretl_model_get_int(pmod, "ordered")) {
return 1;
}
}
return 0;
} | ordered_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double ordered_model_prediction(const MODEL *pmod, double Xb, int ymin) {
int k;
int i;
int pred;
int maxval;
double pmax;
double CDFbak;
double CDF;
k = gretl_model_get_int(pmod, "nx");
maxval = pmod->ncoeff - k;
pred = ymin;
CDFbak = lp_cdf(pmod->coeff[k] - Xb, pmod->ci);
pmax = CDFbak;
for... | double ordered_model_prediction(const MODEL *pmod, double Xb, int ymin) {
int k = gretl_model_get_int(pmod, "nx");
int maxval = pmod->ncoeff - k;
double prob, pmax, cut;
double CDF, CDFbak;
int i, pred = ymin;
cut = pmod->coeff[k];
pmax = CDFbak = lp_cdf(cut - Xb, pmod->ci);
for (i = 1; i < maxval; i... | ordered_model_prediction | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *ordered_probit(MODEL *__return_ptr retstr, int *list, DATASET *dset,
gretlopt opt, PRN *prn) {
if ((opt & 0x200000) == 0)
prn = 0;
ordered_estimate(retstr, list, dset, 102, opt, prn);
return retstr;
} | MODEL ordered_probit(int *list, DATASET *dset, gretlopt opt, PRN *prn) {
PRN *vprn = (opt & OPT_V) ? prn : NULL;
return ordered_estimate(list, dset, PROBIT, opt, vprn);
} | ordered_probit | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int orthdev_series(const double *x, double *y, const DATASET *dset) {
int n;
int s;
int t;
int Tt;
double xbar;
for (t = dset->t1; t < dset->t2; ++t) {
if (fabs(x[t]) <= 1.797693134862316e308) {
if (dset && dset->structure == 2)
Tt = dset->pd - t % dset->pd - 1;
else
Tt = ds... | int orthdev_series(const double *x, double *y, const DATASET *dset) {
double xbar;
int n, s, t, Tt;
for (t = dset->t1; t < dset->t2; t++) {
if (na(x[t])) {
continue;
}
if (dataset_is_panel(dset)) {
Tt = dset->pd - (t % dset->pd) - 1;
} else {
Tt = dset->t2 - t;
}
xbar... | orthdev_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int oshp_filter(const double *x, double *hp, const DATASET *dset, double lambda,
gretlopt opt) {
double lambdaa;
double *hpa;
const double *xa;
int t1;
int t2;
int err;
int t;
int T;
int kerr;
gretl_matrix *Lambda;
gretl_matrix *a0;
gretl_matrix *mu;
gretl_bundle *b;
double s... | int oshp_filter(const double *x, double *hp, const DATASET *dset, double lambda,
gretlopt opt) {
int t1 = dset->t1, t2 = dset->t2;
gretl_matrix *M[4] = {NULL};
gretl_matrix *Lambda = NULL;
gretl_matrix *a0 = NULL;
gretl_matrix *mu = NULL;
gretl_bundle *b = NULL;
int copy[4] = {0};
int T,... | oshp_filter | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int other_gretl_running(const char *fname) {
_BOOL4 ret;
FILE *fp;
long lv[4];
unsigned long v5;
v5 = __readfsqword(0x28u);
fp = gretl_fopen(fname, "rb");
ret = 0;
if (fp) {
ret = (int)__isoc99_fscanf(fp, "%ld %ld %ld %ld", lv, &lv[1], &lv[2],
&lv[3]) > 2;
fclose(... | static int other_gretl_running(const char *fname) {
FILE *fp = gretl_fopen(fname, "rb");
int ret = 0;
if (fp != NULL) {
long lv[4];
int np;
np = fscanf(fp, "%ld %ld %ld %ld", &lv[0], &lv[1], &lv[2], &lv[3]);
if (np > 2) {
ret = 1;
}
fclose(fp);
}
return ret;
} | other_gretl_running | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *other_set_numeric(const char *lang) {
char *set;
char lfix[40];
unsigned long v4;
v4 = __readfsqword(0x28u);
set = setlocale(1, lang);
if (!set) {
sprintf(lfix, "%s.UTF-8", lang);
return setlocale(1, lfix);
}
return set;
} | static char *other_set_numeric(const char *lang) {
char *set = setlocale(LC_NUMERIC, lang);
if (set == NULL) {
char lfix[32];
sprintf(lfix, "%s.UTF-8", lang);
set = setlocale(LC_NUMERIC, lfix);
}
return set;
} | other_set_numeric | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void out_crlf(const char *buf, FILE *fp) {
while (*buf) {
if (*buf == 10)
fwrite("\r\n", 1u, 2u, fp);
else
fputc(*buf, fp);
++buf;
}
} | static void out_crlf(const char *buf, FILE *fp) {
const char *p = buf;
#ifdef G_OS_WIN32
fputs(p, fp);
#else
while (*p) {
if (*p == '\n') {
fputs("\r\n", fp);
} else {
fputc(*p, fp);
}
p++;
}
#endif
} | out_crlf | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void out_native(const char *buf, FILE *fp) { fputs(buf, fp); } | static void out_native(const char *buf, FILE *fp) {
#ifdef G_OS_WIN32
if (!gretl_is_ascii(buf)) {
fputc(0xEF, fp);
fputc(0xBB, fp);
fputc(0xBF, fp);
}
#endif
fputs(buf, fp);
} | out_native | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int out_of_sample_check(MODEL *pmod, DATASET *dset) {
char *v2;
char *v4;
char *v5;
int panel;
int ret;
int Tfull;
int Tcurr;
DATASET *fullset;
if (pmod->ci == 93 || pmod->ci == 28 ||
pmod->ci == 88 && dset && dset->structure == 2) {
panel = 1;
ret = 1;
if (gretl_model_get_int(pmod,... | static int out_of_sample_check(MODEL *pmod, DATASET *dset) {
int panel, ret;
if (pmod->ci == PANEL || pmod->ci == DPANEL ||
(pmod->ci == OLS && dataset_is_panel(dset))) {
panel = 1;
ret = OS_ERR;
if (gretl_model_get_int(pmod, "ntdum") > 0) {
gretl_errmsg_set(_("Specification includes time d... | out_of_sample_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int outcovmx(MODEL *pmod, const DATASET *dset, PRN *prn) {
int err;
VMatrix *vmat;
err = 0;
vmat = gretl_model_get_vcv(pmod, dset);
if (!vmat)
return 12;
text_print_vmatrix(vmat, prn);
free_vmatrix(vmat);
return err;
} | int outcovmx(MODEL *pmod, const DATASET *dset, PRN *prn) {
VMatrix *vmat;
int err = 0;
vmat = gretl_model_get_vcv(pmod, dset);
if (vmat == NULL) {
err = E_ALLOC;
} else {
text_print_vmatrix(vmat, prn);
free_vmatrix(vmat);
}
return err;
} | outcovmx | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
DATASET *outer_dataset(joinspec *jspec) {
if (jspec->c)
return csvdata_get_dataset(jspec->c);
else
return jspec->dset;
} | static DATASET *outer_dataset(joinspec *jspec) {
if (jspec->c != NULL) {
return csvdata_get_dataset(jspec->c);
} else {
return jspec->dset;
}
} | outer_dataset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int outer_series_index(joinspec *jspec, int i) {
if (i <= 0)
return -1;
else
return jspec->colnums[i + 5];
} | static int outer_series_index(joinspec *jspec, int i) {
if (i >= 1) {
return jspec->colnums[JOIN_TARG + i - 1];
} else {
return -1;
}
} | outer_series_index | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int outfile_redirect(PRN *prn, FILE *fp, const char *strvar, const char *fname,
gretlopt opt, int *parms) {
int err;
err = print_start_redirection(prn, fp, fname, strvar);
if (err)
return err;
if ((opt & 0x10000) != 0) {
*parms = gretl_echo_on();
parms[1] = gretl_messages_on();... | static int outfile_redirect(PRN *prn, FILE *fp, const char *strvar,
const char *fname, gretlopt opt, int *parms) {
int err;
err = print_start_redirection(prn, fp, fname, strvar);
if (err) {
return err;
}
if (opt & OPT_Q) {
parms[0] = gretl_echo_on();
parms[1] = gretl_... | outfile_redirect | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int outname_check(const char *name, int backward, const DATASET *dset) {
char *v3;
int err;
GretlType t;
t = gretl_type_from_name(name, dset);
err = 0;
if (t && t != GRETL_TYPE_STRING)
return 37;
if (t == GRETL_TYPE_NONE) {
if (backward) {
err = check_identifier(name);
if (!err)
... | static int outname_check(const char *name, int backward, const DATASET *dset) {
GretlType t = gretl_type_from_name(name, dset);
int err = 0;
if (t != GRETL_TYPE_NONE && t != GRETL_TYPE_STRING) {
err = E_TYPES;
} else if (t == GRETL_TYPE_NONE) {
if (backward) {
err = check_identifier(name);
... | outname_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int output_db_var(int v, const DATASET *dset, FILE *fidx, FILE *fbin) {
const char *v5;
char v6;
float v7;
float val;
int t1;
int t2;
int dskip;
int npad;
int t;
int s;
int nobs;
const char *vlabel;
char stobs[16];
char endobs[24];
unsigned long v21;
v21 = __readfsqword(0x28u);
t1 = d... | static int output_db_var(int v, const DATASET *dset, FILE *fidx, FILE *fbin) {
char stobs[OBSLEN], endobs[OBSLEN];
const char *vlabel;
int t1 = dset->t1;
int t2 = dset->t2;
int dskip = 0, npad = 0;
int t, s, nobs;
float val;
if (dataset_is_time_series(dset)) {
for (t = dset->t1; t <= dset->t2; t++... | output_db_var | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void output_help_line(const char *line, PRN *prn, int recode) {
if (recode <= 0)
pputs(prn, line);
else
recode_print_line(line, prn);
} | static void output_help_line(const char *line, PRN *prn, int recode) {
if (recode > 0) {
recode_print_line(line, prn);
} else {
pputs(prn, line);
}
} | output_help_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int output_help_text(const char *cmd, FILE *fp, int recode, PRN *prn) {
char *i;
char *v5;
int ok;
char word[16];
char line[136];
unsigned long v12;
v12 = __readfsqword(0x28u);
ok = 0;
for (i = fgets(line, 128, fp); i; i = fgets(line, 128, fp)) {
if (line[0] == 35) {
__isoc99_sscanf(&line[2... | static int output_help_text(const char *cmd, FILE *fp, int recode, PRN *prn) {
char word[16], line[HELPLEN];
int ok = 0;
while (fgets(line, sizeof line, fp) != NULL) {
if (*line != '#') {
continue;
}
sscanf(line + 2, "%15s", word);
if (!strcmp(cmd, word)) {
ok = 1;
pprintf(prn, ... | output_help_text | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void output_line(char *str, PRN *prn, int dblspc) {
pputs(prn, str);
if (dblspc)
pputs(prn, "\n\n");
else
pputc(prn, 10);
} | static void output_line(char *str, PRN *prn, int dblspc) {
pputs(prn, str);
if (dblspc) {
pputs(prn, "\n\n");
} else {
pputc(prn, '\n');
}
} | output_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int output_matrix_count(kalman *K) {
int v1;
int i;
int n;
gretl_matrix **pm;
n = 0;
for (i = 0; i <= 8; ++i) {
pm = kalman_output_matrix(K, kalman_output_matrix_names[i]);
v1 = pm && *pm;
n += v1;
}
return n;
} | static int output_matrix_count(kalman *K) {
gretl_matrix **pm;
int i, n = 0;
for (i = 0; i < K_N_OUTPUTS; i++) {
pm = kalman_output_matrix(K, kalman_output_matrix_names[i]);
n += (pm != NULL && *pm != NULL);
}
return n;
} | output_matrix_count | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int output_matrix_slot(const char *s) {
int i;
for (i = 0; i <= 8; ++i) {
if (!strcmp(s, kalman_output_matrix_names[i]))
return i;
}
return -1;
} | static int output_matrix_slot(const char *s) {
int i;
for (i = 0; i < K_N_OUTPUTS; i++) {
if (!strcmp(s, kalman_output_matrix_names[i])) {
return i;
}
}
return -1;
} | output_matrix_slot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void outxx(double x, int ci, int wid, PRN *prn) {
char *v4;
char *v5;
int utf_width;
double xa;
char numstr[24];
unsigned long v10;
xa = x;
v10 = __readfsqword(0x28u);
if (fabs(x) <= 1.797693134862316e308) {
if (ci == 19) {
pprintf(prn, " %*.4f", wid - 1, x);
} else {
if (x == 0.0... | static void outxx(double x, int ci, int wid, PRN *prn) {
if (isnan(x) || na(x)) {
if (ci == CORR) {
pprintf(prn, "%*s", UTF_WIDTH(_("NA"), wid), _("NA"));
} else {
bufspace(wid, prn);
}
} else if (ci == CORR) {
pprintf(prn, " %*.4f", wid - 1, x);
} else {
char numstr[18];
if (... | outxx | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int overlay_masks(char *targ, const char *src, int n) {
int i;
int sn;
sn = 0;
for (i = 0; i < n; ++i) {
if (targ[i] == 1 && src[i] == 1) {
targ[i] = 1;
++sn;
} else {
targ[i] = 0;
}
}
return sn;
} | static int overlay_masks(char *targ, const char *src, int n) {
int i, sn = 0;
for (i = 0; i < n; i++) {
if (targ[i] == 1 && src[i] == 1) {
targ[i] = 1;
sn++;
} else {
targ[i] = 0;
}
}
return sn;
} | overlay_masks | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int overwrite_const_check(const char *name, int vnum) {
if (object_is_const(name, vnum))
return overwrite_err(name);
else
return 0;
} | static int overwrite_const_check(const char *name, int vnum) {
if (object_is_const(name, vnum)) {
return overwrite_err(name);
} else {
return 0;
}
} | overwrite_const_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int overwrite_err(const char *name) {
char *v1;
v1 = gettext("The variable %s is read-only");
gretl_errmsg_sprintf(v1, name);
return 2;
} | int overwrite_err(const char *name) {
gretl_errmsg_sprintf(_("The variable %s is read-only"), name);
return E_DATA;
} | overwrite_err | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int overwrite_type_check(parser *p) {
int err;
err = 0;
if (p->targ != p->lh.t) {
maybe_do_type_errmsg(p->lh.name, p->lh.t);
return 37;
}
return err;
} | static int overwrite_type_check(parser *p) {
int err = 0;
if (p->targ != p->lh.t) {
maybe_do_type_errmsg(p->lh.name, p->lh.t);
err = E_TYPES;
}
return err;
} | overwrite_type_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int owner_id(const DATASET *dset, const char *s) {
int i;
for (i = 1; i < dset->v; ++i) {
if (!strcmp(s, dset->varname[i]))
return i;
}
return -1;
} | static int owner_id(const DATASET *dset, const char *s) {
int i;
for (i = 1; i < dset->v; i++) {
if (!strcmp(s, dset->varname[i])) {
return i;
}
}
return -1;
} | owner_id | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int p15_OK(const DATASET *dset, int v) {
int t;
int i;
int n_ok;
int ret;
const double *x;
char s[40];
unsigned long v9;
v9 = __readfsqword(0x28u);
x = dset->Z[v];
n_ok = 0;
ret = 1;
for (t = dset->t1; t <= dset->t2; ++t) {
if (fabs(x[t]) <= 1.797693134862316e308) {
sprintf(s, "% .14e... | static int p15_OK(const DATASET *dset, int v) {
const double *x = dset->Z[v];
char s[32];
int t, i, n_ok = 0;
int ret = 1;
for (t = dset->t1; t <= dset->t2; t++) {
if (!na(x[t])) {
sprintf(s, "% .14e", x[t]);
for (i = 16; i > 13; i--) {
if (s[i] != '0') {
break;
}
... | p15_OK | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double p1evl(double x, double *coef, int N) {
double *v3;
int i;
double ans;
double *p;
p = coef + 1;
ans = *coef + x;
i = N - 1;
do {
v3 = p++;
ans = *v3 + ans * x;
--i;
} while (i);
return ans;
} | double p1evl(double x, double *coef, int N) {
double ans;
double *p;
int i;
p = coef;
ans = x + *p++;
i = N - 1;
do {
ans = ans * x + *p++;
} while (--i);
return ans;
} | p1evl | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_check_dependencies(const char *fname, ExecState *s, PRN *prn) {
size_t v3;
int ndeps;
int err;
int i;
char **depends;
gchar *tmp;
const char *p;
gchar *gfnname;
char *pkgpath;
unsigned long v14;
v14 = __readfsqword(0x28u);
err = 0;
if (has_suffix(fname, ".zip")) {
v3 = strlen(... | static int package_check_dependencies(const char *fname, ExecState *s,
PRN *prn) {
char **depends;
int ndeps;
int err = 0;
if (has_suffix(fname, ".zip")) {
gchar *tmp, *gfnname;
const char *p;
tmp = g_strndup(fname, strlen(fname) - 4);
p = path_last_eleme... | package_check_dependencies | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void package_disconnect_funcs(fnpkg *pkg) {
int i;
int ia;
if (pkg->pub) {
for (i = 0; i < pkg->n_pub; ++i)
pkg->pub[i]->pkg = 0;
free(pkg->pub);
pkg->pub = 0;
pkg->n_pub = 0;
}
if (pkg->priv) {
for (ia = 0; ia < pkg->n_priv; ++ia) {
pkg->priv[ia]->pkg = 0;
set_function_... | static void package_disconnect_funcs(fnpkg *pkg) {
int i;
if (pkg->pub != NULL) {
for (i = 0; i < pkg->n_pub; i++) {
pkg->pub[i]->pkg = NULL;
}
free(pkg->pub);
pkg->pub = NULL;
pkg->n_pub = 0;
}
if (pkg->priv != NULL) {
for (i = 0; i < pkg->n_priv; i++) {
pkg->priv[i]->pkg ... | package_disconnect_funcs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_has_menu_attachment(const char *fname, char **pkgname,
char **attach, char **label) {
int got_label;
int got_attach;
_BOOL4 stop;
xmlDocPtr doc;
xmlNodePtr node;
char *tmp;
xmlNodePtr sub;
unsigned long v14;
v14 = __readfsqword(0x28u);
doc = 0;
node = 0... | int package_has_menu_attachment(const char *fname, char **pkgname,
char **attach, char **label) {
xmlDocPtr doc = NULL;
xmlNodePtr node = NULL;
xmlNodePtr sub;
char *tmp = NULL;
int got_label = 0;
int got_attach = 0;
int stop = 0;
int err = 0;
err = gretl_xml_open_doc_... | package_has_menu_attachment | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_make_zipfile(const char *gfnname, int pdfdoc, char **datafiles,
int n_datafiles, gchar **pzipname, const char *dest,
gretlopt opt, PRN *prn) {
const char *v9;
const char *v10;
const char *v11;
int dir_made;
int err;
int i;
int len;
char *tmp;... | int package_make_zipfile(const char *gfnname, int pdfdoc, char **datafiles,
int n_datafiles, gchar **pzipname, const char *dest,
gretlopt opt, PRN *prn) {
char pkgbase[FILENAME_MAX];
gchar *pkgname = NULL;
gchar *origdir = NULL;
gchar *tmp, *dotpath = NULL;
in... | package_make_zipfile | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_needs_zipping(const char *fname, int *pdfdoc, char ***datafiles,
int *n_files) {
int err;
int stop;
int retmax;
int ret;
xmlDocPtr doc;
xmlNodePtr node;
char *tmp;
xmlNodePtr sub;
unsigned long v15;
v15 = __readfsqword(0x28u);
doc = 0;
node = 0;
tmp = 0;
... | int package_needs_zipping(const char *fname, int *pdfdoc, char ***datafiles,
int *n_files) {
xmlDocPtr doc = NULL;
xmlNodePtr node = NULL;
xmlNodePtr sub;
char *tmp = NULL;
int stop = 0;
int retmax = 1;
int ret = 0;
int err = 0;
err = gretl_xml_open_doc_root(fname, "gretl-fu... | package_needs_zipping | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char **package_peek_dependencies(const char *fname, int *ndeps) {
int err;
char **deps;
fnpkg *pkg;
unsigned long v6;
v6 = __readfsqword(0x28u);
deps = 0;
err = 0;
pkg = read_package_file(fname, 0, &err);
if (pkg) {
deps = pkg->depends;
*ndeps = pkg->n_depends;
pkg->depends = 0;
pkg->... | char **package_peek_dependencies(const char *fname, int *ndeps) {
char **deps = NULL;
fnpkg *pkg;
int err = 0;
pkg = read_package_file(fname, 0, &err);
if (pkg != NULL) {
deps = pkg->depends;
*ndeps = pkg->n_depends;
pkg->depends = NULL;
pkg->n_depends = 0;
function_package_free(pkg);
... | package_peek_dependencies | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *package_role_get_key(int flag) {
int i;
for (i = 0; pkg_lookups[i].flag > 0; ++i) {
if (flag == pkg_lookups[i].flag)
return pkg_lookups[i].key;
}
return 0;
} | const char *package_role_get_key(int flag) {
int i;
for (i = 0; pkg_lookups[i].flag > 0; i++) {
if (flag == pkg_lookups[i].flag) {
return pkg_lookups[i].key;
}
}
return NULL;
} | package_role_get_key | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_version_ok(int minver, char *reqstr) {
_BOOL4 ret;
if (!thisver_1)
thisver_1 = gretl_version_number("2021d");
ret = minver <= thisver_1;
if (minver > thisver_1 && reqstr)
gretl_version_string(reqstr, minver);
return ret;
} | int package_version_ok(int minver, char *reqstr) {
static int thisver = 0;
int ret = 0;
if (thisver == 0) {
thisver = gretl_version_number(GRETL_VERSION);
}
ret = thisver >= minver;
if (!ret && reqstr != NULL) {
gretl_version_string(reqstr, minver);
}
return ret;
} | package_version_ok | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_write_index(fnpkg *pkg, PRN *inprn) {
const char *v3;
char *v4;
int err;
gchar *idxname;
PRN *prn;
char vstr[8];
unsigned long v9;
v9 = __readfsqword(0x28u);
err = 0;
idxname = (gchar *)g_strdup_printf("%s.xml", pkg->name);
prn = gretl_print_new_with_filename(idxname, &err);
if (prn... | static int package_write_index(fnpkg *pkg, PRN *inprn) {
PRN *prn;
gchar *idxname;
int err = 0;
idxname = g_strdup_printf("%s.xml", pkg->name);
prn = gretl_print_new_with_filename(idxname, &err);
if (prn == NULL) {
g_free(idxname);
return err;
}
gretl_xml_header(prn);
pprintf(prn, "<gretl-... | package_write_index | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int package_write_translatable_strings(fnpkg *pkg, PRN *prn) {
char *v2;
int n;
int i;
int j;
int k;
char **S;
gchar *trname;
FILE *fp;
ufunc *fun;
fn_param *param;
unsigned long v13;
v13 = __readfsqword(0x28u);
S = 0;
n = 0;
trname = (gchar *)g_strdup_printf("%s-i18n.c", pkg->name);
fp... | static int package_write_translatable_strings(fnpkg *pkg, PRN *prn) {
FILE *fp;
gchar *trname;
char **S = NULL;
int i, n = 0;
trname = g_strdup_printf("%s-i18n.c", pkg->name);
fp = gretl_fopen(trname, "wb");
if (fp == NULL) {
gretl_errmsg_sprintf(_("Couldn't open %s"), trname);
g_free(trname);
... | package_write_translatable_strings | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int pad_daily_data(DATASET *dset, int pd, PRN *prn) {
long v4;
long v5;
long v6;
long v7;
char **varname;
long v9;
char *descrip;
char *restriction;
char *mapfile;
char *pangrps;
double panel_sd0;
signed int ed0;
guint32 edbak;
guint32 edbaka;
int totskip;
int t;
int ta;
int err;
i... | static int pad_daily_data(DATASET *dset, int pd, PRN *prn) {
DATASET *bigset = NULL;
char datestr[OBSLEN];
guint32 ed, ed0 = 0, edbak = 0;
int wd, skip, totskip = 0;
int t, err = 0;
for (t = 0; t < dset->n; t++) {
ntolabel(datestr, t, dset);
if (t == 0) {
ed0 = edbak = get_epoch_day(datestr);... | pad_daily_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int pad_panel_dataset(const double *uid, int uv, int nunits, const double *tid,
int tv, int nperiods, DATASET *dset, int ustrs,
char *mask) {
double v10;
int v11;
int v12;
int i;
int ia;
int ib;
int ic;
int id;
int ie;
int t;
int ta;
int tb;
int tc;
... | static int pad_panel_dataset(const double *uid, int uv, int nunits,
const double *tid, int tv, int nperiods,
DATASET *dset, int ustrs, char *mask) {
double **bigZ = NULL;
char **S = NULL;
int *nuid = NULL;
int *ntid = NULL;
int big_n, n_orig = dset->n;... | pad_panel_dataset | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void pad_parent(NODE *parent, int np, int i, parser *p) {
NODE *v4;
while (i < np) {
v4 = newempty();
attach_child(parent, v4, 0, np, i++, p);
}
} | static void pad_parent(NODE *parent, int np, int i, parser *p) {
int j;
for (j = i; j < np; j++) {
attach_child(parent, newempty(), 0, np, j, p);
}
} | pad_parent | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int pad_weekly_data(DATASET *dset, int add) {
int ttarg;
int offset;
int i;
int s;
int t;
int oldn;
int skip;
int err;
int tc;
oldn = dset->n;
offset = 0;
err = dataset_add_observations(dset, add, OPT_A);
if (!err) {
for (t = 0; t < oldn; ++t) {
tc = calendar_obs_number(dset->S[t], ... | static int pad_weekly_data(DATASET *dset, int add) {
int oldn = dset->n;
int ttarg, offset = 0, skip = 0;
int i, s, t, tc, err;
err = dataset_add_observations(dset, add, OPT_A);
if (!err) {
for (t = 0; t < oldn; t++) {
tc = calendar_obs_number(dset->S[t], dset) - offset;
if (tc != t) {
... | pad_weekly_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_DF_test(int v, int order, DATASET *dset, gretlopt opt, PRN *prn) {
int v6;
const char *v7;
char *v8;
const char *v9;
char *v10;
double v11;
double v12;
double v13;
char *v14;
gretlopt opta;
DATASET *dseta;
int ordera;
int va;
int i;
int err;
int u0;
int uN;
int quiet;
int... | static int panel_DF_test(int v, int order, DATASET *dset, gretlopt opt,
PRN *prn) {
adf_info ainfo = {0};
int u0 = dset->t1 / dset->pd;
int uN = dset->t2 / dset->pd;
int quiet = (opt & OPT_Q);
int verbose = (opt & OPT_V);
double ppv = 0.0, zpv = 0.0, lpv = 0.0;
double pval, tbar =... | panel_DF_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_DW_pval_ok(const MODEL *pmod) {
return fabs(pmod->dw) <= 1.797693134862316e308;
} | int panel_DW_pval_ok(const MODEL *pmod) {
if (na(pmod->dw)) {
return 0;
} else {
#if DWPVAL_TESTING
return 1;
#else
int Tmax = gretl_model_get_int(pmod, "Tmax");
int Tmin = gretl_model_get_int(pmod, "Tmin");
return Tmax == Tmin;
#endif
}
} | panel_DW_pval_ok | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void panel_ML_ll(MODEL *pmod, const double *uvar, int nunits,
const int *unit_obs) {
int i;
int Ti;
double ll;
ll = 1.837877066409346 * -((double)pmod->nobs / 2.0);
for (i = 0; i < nunits; ++i) {
Ti = unit_obs[i];
if (Ti > 0)
ll = ll - (double)Ti / 2.0 * (log(uvar[i]) + 1.0);
... | static void panel_ML_ll(MODEL *pmod, const double *uvar, int nunits,
const int *unit_obs) {
double ll = -(pmod->nobs / 2.0) * LN_2_PI;
int i, Ti;
for (i = 0; i < nunits; i++) {
Ti = unit_obs[i];
if (Ti > 0) {
ll -= (Ti / 2.0) * (1.0 + log(uvar[i]));
}
}
pmod->lnL = ... | panel_ML_ll | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_adjust_ADF_opt(gretlopt *opt) {
if ((*opt & 0xA2004) == 0)
*opt |= 4u;
return 0;
} | static int panel_adjust_ADF_opt(gretlopt *opt) {
int err = 0;
if (*opt & (OPT_N | OPT_C | OPT_R | OPT_T)) {
;
} else {
*opt |= OPT_C;
}
return err;
} | panel_adjust_ADF_opt | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_append_special(int addvars, DATASET *dset, DATASET *addset,
gretlopt opt, PRN *prn) {
char *v5;
_BOOL4 v6;
int v7;
int v8;
double *v9;
int v10;
int k;
int i;
int j;
int s;
int t;
int err;
int v;
int n;
int T;
int tsdata;
n = dset->n / dset->pd;
T =... | static int panel_append_special(int addvars, DATASET *dset, DATASET *addset,
gretlopt opt, PRN *prn) {
int n = dset->n / dset->pd;
int T = dset->pd;
int k = dset->v;
int tsdata;
int i, j, s, p, t;
int err = 0;
if (addvars > 0 && dataset_add_series(dset, addvars)) {
mer... | panel_append_special | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_autocorr_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) {
int err;
int save_pcse;
int orig_v;
save_pcse = libset_get_bool(USE_PCSE);
orig_v = dset->v;
libset_set_bool(USE_PCSE, 0);
if (pmod->ci == 88 || (pmod->opt & 0x8000) != 0)
err = pooled_autocorr_test(pmod, dset, opt, prn);
... | int panel_autocorr_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) {
int save_pcse = libset_get_bool(USE_PCSE);
int orig_v = dset->v;
int err;
libset_set_bool(USE_PCSE, 0);
if (pmod->ci == OLS || (pmod->opt & OPT_P)) {
err = pooled_autocorr_test(pmod, dset, opt, prn);
} else {
err = woold... | panel_autocorr_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_check_for_const(const int *list) {
int i;
for (i = 2; i <= *list; ++i) {
if (!list[i])
return 0;
}
return 29;
} | static int panel_check_for_const(const int *list) {
int i;
for (i = 2; i <= list[0]; i++) {
if (list[i] == 0) {
return 0;
}
}
return E_NOCONST;
} | panel_check_for_const | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_daily_or_weekly(const DATASET *dset, double *x) {
int y;
int m;
int d;
int t;
int err;
int n;
DATASET tsset;
char datestr[24];
unsigned long v11;
v11 = __readfsqword(0x28u);
memset(&tsset, 0, sizeof(tsset));
err = 0;
tsset.structure = 1;
tsset.pd = dset->panel_pd;
tsset.sd0 = ds... | static int panel_daily_or_weekly(const DATASET *dset, double *x) {
DATASET tsset = {0};
char datestr[16];
int t, y, m, d, n;
int err = 0;
tsset.structure = TIME_SERIES;
tsset.pd = dset->panel_pd;
tsset.sd0 = dset->panel_sd0;
tsset.n = dset->pd;
calendar_date_string(tsset.stobs, 0, &tsset);
for (t ... | panel_daily_or_weekly | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_data_sort_by(DATASET *dset, int uv, int tv, int *ustrs) {
int i;
int t;
int ta;
int tb;
int tc;
int td;
int n;
int err;
char **S;
double *tmp;
sorter_0 s;
unsigned long v18;
v18 = __readfsqword(0x28u);
n = dset->n;
S = 0;
tmp = (double *)malloc(8LL * n);
if (!tmp)
return... | static int panel_data_sort_by(DATASET *dset, int uv, int tv, int *ustrs) {
int n = dset->n;
char **S = NULL;
double *tmp = NULL;
int i, t;
sorter s;
int err = 0;
tmp = malloc(n * sizeof *tmp);
if (tmp == NULL) {
return E_ALLOC;
}
s.points = malloc(n * sizeof *s.points);
if (s.points == NULL)... | panel_data_sort_by | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_dataset_extend_time(DATASET *dset, int n) {
double *v3;
int v4;
double *v5;
char **v6;
int v7;
int ed_err;
int i;
int j;
int s;
int t;
int err;
int uconst;
int utrend;
int dtrend;
guint32 dt;
guint32 dbak;
int k;
int oldT;
int oldn;
int n_units;
int newT;
int bign;
... | static int panel_dataset_extend_time(DATASET *dset, int n) {
double *utmp, *vtmp;
char **S = NULL;
int newT, oldT = dset->pd;
int oldn = dset->n;
int n_units;
int i, j, s, t, bign;
size_t usz, vsz;
int err = 0;
if (!dataset_is_panel(dset)) {
return E_PDWRONG;
}
if (dset_zcols_borrowed(dset))... | panel_dataset_extend_time | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_diagnostics(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) {
unsigned int effn;
char *v6;
char *v7;
_BOOL4 nerlove;
gretlopt psopt;
int err;
int quiet;
int xdf;
DATASET *gset;
panelmod_t pan;
unsigned long v16;
v16 = __readfsqword(0x28u);
quiet = opt & 0x10000;
psopt = opt;
... | int panel_diagnostics(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) {
int nerlove = 0;
int quiet = (opt & OPT_Q);
gretlopt psopt = opt;
panelmod_t pan;
int xdf, err = 0;
#if PDEBUG
fputs("\n*** Starting panel_diagnostics ***\n", stderr);
fprintf(stderr, " OPT_M? %s\n", (opt & OPT_M) ? "yes" : "no")... | panel_diagnostics | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void panel_dwstat(MODEL *pmod, panelmod_t *pan) {
int in_bounds;
int i;
int t;
int started;
int s;
double dwnum;
double rnum;
double rden;
double ut;
double u1;
dwnum = 0.0;
rnum = 0.0;
rden = 0.0;
in_bounds = 1;
pmod->rho = NAN;
pmod->dw = pmod->rho;
if (pmod->ess > 0.0) {
for (i... | static void panel_dwstat(MODEL *pmod, panelmod_t *pan) {
double dwnum = 0.0;
double rnum = 0.0;
double rden = 0.0;
double ut, u1;
int in_bounds = 1;
int i, t, s;
pmod->dw = pmod->rho = NADBL;
if (pmod->ess <= 0.0) {
return;
}
#if 0
fprintf(stderr, "DW: pmod=%p, pooled=%p, T=%d\n",
(voi... | panel_dwstat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_expand(const gretl_matrix *x, double *y, gretlopt opt,
const DATASET *dset) {
int v4;
int rows;
int v7;
int ubak;
int t;
int i;
int n;
double xi;
if (dset)
v4 = dset->t2 - dset->t1 + 1;
else
v4 = 0;
if (!x || !dset || dset->structure != 2)
return 2;
n = (i... | int panel_expand(const gretl_matrix *x, double *y, gretlopt opt,
const DATASET *dset) {
int n, T = sample_size(dset);
if (x == NULL || !dataset_is_panel(dset)) {
return E_DATA;
}
n = (int)ceil((double)T / dset->pd);
if (gretl_vector_get_length(x) != n) {
return E_NONCONF;
} else ... | panel_expand | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_expand_ok(DATASET *dset, DATASET *addinfo, gretlopt opt) {
int ok;
ok = 0;
if (dset->pd == addinfo->n)
return 1;
if ((opt & 0x80000) == 0 && dset->n / dset->pd == addinfo->n)
return addinfo->pd == 1;
return ok;
} | static int panel_expand_ok(DATASET *dset, DATASET *addinfo, gretlopt opt) {
int n = dset->n / dset->pd;
int T = dset->pd;
int ok = 0;
if (addinfo->n == T) {
ok = 1;
} else if (!(opt & OPT_T) && addinfo->n == n && addinfo->pd == 1) {
ok = 1;
}
return ok;
} | panel_expand_ok | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_fcast(Forecast *fc, MODEL *pmod, DATASET *dset, gretlopt opt) {
int err;
int save_t1;
int save_t2;
save_t1 = dset->t1;
save_t2 = dset->t2;
dset->t1 = fc->t1;
dset->t2 = fc->t2;
if (pmod->ci == 28)
err = real_dpanel_fcast(fc->yhat, 0, 0, pmod, 0, dset, opt);
else
err = real_panel_fca... | static int panel_fcast(Forecast *fc, MODEL *pmod, DATASET *dset, gretlopt opt) {
int save_t1 = dset->t1;
int save_t2 = dset->t2;
int err;
dset->t1 = fc->t1;
dset->t2 = fc->t2;
if (pmod->ci == DPANEL) {
err = real_dpanel_fcast(fc->yhat, NULL, NULL, pmod, NULL, dset, opt);
} else {
err = real_panel... | panel_fcast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_grid_ts_plot(int vnum, const DATASET *dset, gretlopt opt) {
char *v4;
int rows;
int cols;
int use;
int strip;
int err;
int n_ok_units;
int panel_labels;
int i;
int t;
int t0;
int ok;
int T;
int nunits;
int u0;
int xvar;
int w;
int s;
double ymin;
double ymax;
int *bad... | static int panel_grid_ts_plot(int vnum, const DATASET *dset, gretlopt opt) {
FILE *fp = NULL;
int w, rows, cols;
const double *y, *x = NULL;
const char *vname;
char uname[OBSLEN];
double xt, yt, ymin, ymax, incr;
int u0, nunits, T = dset->pd;
int n_ok_units = 0;
int panel_labels = 0;
int use = 0, st... | panel_grid_ts_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_group_boxplots(int vnum, const DATASET *dset, const char *literal,
gretlopt opt) {
int v5;
int i;
int t;
int s;
int T;
int err;
int nunits;
_BYTE u1[12];
DATASET *gdset;
T = dset->pd;
nunits = panel_sample_size(dset);
*(_QWORD *)u1 = (unsigned int)(dset->t1 / ... | static int panel_group_boxplots(int vnum, const DATASET *dset,
const char *literal, gretlopt opt) {
DATASET *gdset;
int nunits, T = dset->pd;
int *list = NULL;
int nv, u1, i, t, s;
int err = 0;
nunits = panel_sample_size(dset);
nv = nunits + 1;
u1 = 1 + dset->t1 / T;
... | panel_group_boxplots | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_group_invariant_plot(const int *plotlist, const char *literal,
DATASET *dset, gretlopt opt) {
int result;
DATASET orig;
orig = *dset;
dset->t1 = 0;
dset->t2 = dset->pd - 1;
if (dset->panel_pd <= 0) {
dset->structure = 5;
dset->pd = 1;
} else {
dset->pd... | static int panel_group_invariant_plot(const int *plotlist, const char *literal,
DATASET *dset, gretlopt opt) {
DATASET orig = *dset;
int err;
dset->t1 = 0;
dset->t2 = dset->pd - 1;
if (dset->panel_pd > 0) {
dset->pd = dset->panel_pd;
dset->sd0 = dset->panel_sd0;... | panel_group_invariant_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_group_names_ok(const DATASET *dset, int maxlen) {
int ns;
int ok;
int i;
int v;
char **S;
unsigned long v8;
v8 = __readfsqword(0x28u);
ok = 0;
if (dset) {
if (dset->structure == 2) {
if (dset->pangrps) {
v = current_series_index(dset, dset->pangrps);
if (v > 0 && v... | int panel_group_names_ok(const DATASET *dset, int maxlen) {
int ok = 0;
if (dataset_is_panel(dset) && dset->pangrps != NULL) {
int ns, v = current_series_index(dset, dset->pangrps);
if (v > 0 && v < dset->v) {
char **S = series_get_string_vals(dset, v, &ns, 0);
if (S != NULL && ns >= dset->n ... | panel_group_names_ok | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *panel_group_names_varname(const DATASET *dset) {
int ns;
int v;
int ng;
char **S;
unsigned long v6;
v6 = __readfsqword(0x28u);
if (dset && dset->structure == 2 && dset->pangrps &&
(v = current_series_index(dset, dset->pangrps), v > 0) && v < dset->v &&
(S = series_get_string_vals(... | const char *panel_group_names_varname(const DATASET *dset) {
if (dataset_is_panel(dset) && dset->pangrps != NULL) {
int ns, v = current_series_index(dset, dset->pangrps);
if (v > 0 && v < dset->v) {
char **S = series_get_string_vals(dset, v, &ns, 0);
if (S != NULL) {
int ng = dset->n / d... | panel_group_names_varname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_hausman_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) {
return panel_specification_test(pmod, dset, opt, prn);
} | int panel_hausman_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) {
return panel_specification_test(pmod, dset, opt, prn);
} | panel_hausman_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void panel_index_init(const DATASET *dset, int nunits, int T) {
panidx.n = nunits;
panidx.T = T;
panidx.offset = dset->t1;
} | static void panel_index_init(const DATASET *dset, int nunits, int T) {
panidx.n = nunits;
panidx.T = T;
panidx.offset = dset->t1;
#if PDEBUG
fprintf(stderr, "panel_index_init: n=%d, T=%d, offset=%d\n", panidx.n,
panidx.T, panidx.offset);
#endif
} | panel_index_init | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_is_sorted(DATASET *dset, int uv, int tv) {
int t;
int ret;
const double *unit;
const double *period;
unit = dset->Z[uv];
ret = 1;
for (t = 1; t < dset->n && ret; ++t) {
if (unit[t - 1] <= unit[t]) {
if (unit[t] == unit[t - 1]) {
period = dset->Z[tv];
if (period[t - 1] ... | static int panel_is_sorted(DATASET *dset, int uv, int tv) {
const double *unit = dset->Z[uv];
const double *period = dset->Z[tv];
int t, ret = 1;
for (t = 1; t < dset->n && ret; t++) {
if (unit[t] < unit[t - 1]) {
ret = 0;
} else if (unit[t] == unit[t - 1] && period[t] <= period[t - 1]) {
... | panel_is_sorted | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_isconst(int t1, int t2, int pd, const double *x, int bygroup) {
int t;
int ta;
int ret;
int tref;
int ubak;
double x0;
double x0a;
x0 = NAN;
ret = 1;
if (bygroup) {
for (t = t1; t <= t2 && ret; ++t) {
if (fabs(x[t]) <= 1.797693134862316e308) {
for (tref = t - pd; tref >=... | int panel_isconst(int t1, int t2, int pd, const double *x, int bygroup) {
double x0 = NADBL;
int t, ret = 1;
if (bygroup) {
int tref;
for (t = t1; t <= t2 && ret; t++) {
if (na(x[t])) {
continue;
}
tref = t - pd;
while (tref >= t1) {
x0 = x[t - pd];
if (... | panel_isconst | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_kpss_test(int order, int v, DATASET *dset, gretlopt opt, PRN *prn) {
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char *v10;
double v11;
char *v12;
char *v13;
int gt_10;
int lt_01;
int i;
int err;
int u0;
int uN;
int verbose;
double ppv;
double zpv;
double lpv;
dou... | static int panel_kpss_test(int order, int v, DATASET *dset, gretlopt opt,
PRN *prn) {
kpss_info kinfo;
int u0 = dset->t1 / dset->pd;
int uN = dset->t2 / dset->pd;
int n = uN - u0 + 1;
int verbose = (opt & OPT_V);
double ppv = 0.0, zpv = 0.0, lpv = 0.0;
int gt_10 = 0, lt_01 = 0;
... | panel_kpss_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *panel_list_add(const MODEL *orig, const int *add, int *err) {
if (orig->ci == 28)
return dpanel_list_add(orig, add, err);
else
return gretl_list_add(orig->list, add, err);
} | int *panel_list_add(const MODEL *orig, const int *add, int *err) {
if (orig->ci == DPANEL) {
return dpanel_list_add(orig, add, err);
} else {
return gretl_list_add(orig->list, add, err);
}
} | panel_list_add | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *panel_list_omit(const MODEL *orig, const int *drop, int *err) {
int i;
int *newlist;
int *panlist;
newlist = 0;
if (orig->ci == 28)
return dpanel_list_omit(orig, drop, err);
if (drop && in_gretl_list(drop, 0) > 1) {
gretl_errmsg_set("Panel models must include an intercept");
*err = 2;
... | int *panel_list_omit(const MODEL *orig, const int *drop, int *err) {
int *newlist = NULL;
int i;
if (orig->ci == DPANEL) {
return dpanel_list_omit(orig, drop, err);
}
if (drop != NULL) {
int cpos = in_gretl_list(drop, 0);
if (cpos >= 2) {
gretl_errmsg_set("Panel models must include an int... | panel_list_omit | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_means_XY_scatter(const int *list, const DATASET *dset, gretlopt opt) {
const char *display_name;
const char *v5;
double v6;
double v7;
const char *panel_group_name;
char *v9;
int i;
int t;
int s;
int ny;
int nx;
int T;
int err;
int N;
int yvar;
int xvar;
int s0;
double ysum... | int panel_means_XY_scatter(const int *list, const DATASET *dset, gretlopt opt) {
DATASET *gset;
int N, T = dset->pd;
int glist[3] = {2, 1, 2};
gchar *literal = NULL;
int grpnames = 0;
int yvar, xvar;
int i, t, s;
int err = 0;
if (list == NULL || list[0] != 2) {
return E_DATA;
}
N = panel_sam... | panel_means_XY_scatter | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_means_ts_plot(const int vnum, const DATASET *dset, gretlopt opt) {
const char *display_name;
double v5;
const char *graph_name;
char *v7;
int i;
int t;
int n;
int T;
int err;
int nunits;
int s0;
double xsum;
gchar *literal;
gchar *title;
DATASET *gset;
double xit;
int list[2]... | static int panel_means_ts_plot(const int vnum, const DATASET *dset,
gretlopt opt) {
DATASET *gset;
int nunits, T = dset->pd;
int list[2] = {1, 1};
gchar *literal = NULL;
gchar *title = NULL;
int i, t, s, s0;
int err = 0;
nunits = panel_sample_size(dset);
gset = create_... | panel_means_ts_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *panel_model(MODEL *__return_ptr retstr, const int *list, DATASET *dset,
gretlopt opt, PRN *prn) {
MODEL v6;
PRN *prna;
gretlopt opta;
DATASET *dseta;
const int *lista;
MODEL *v11;
MODEL mod;
unsigned long v13;
v11 = retstr;
lista = list;
dseta = dset;
opta = opt;
prn... | MODEL panel_model(const int *list, DATASET *dset, gretlopt opt, PRN *prn) {
MODEL mod;
if (check_panel_options(opt)) {
gretl_model_init(&mod, dset);
mod.errcode = E_BADOPT;
} else if (opt & OPT_H) {
mod = panel_wls_by_unit(list, dset, opt, prn);
} else {
mod = real_panel_model(list, dset, opt, ... | panel_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_model_add_ahat(MODEL *pmod, const DATASET *dset, panelmod_t *pan) {
int i;
int ia;
int j;
int t;
int ta;
int tb;
int tc;
int td;
int n;
int bigt;
int bigta;
int bigtb;
int bigtc;
double a;
double aa;
double uhbar;
double uhbara;
double frac;
double *ahat;
n = pmod->ful... | static int panel_model_add_ahat(MODEL *pmod, const DATASET *dset,
panelmod_t *pan) {
double *ahat = NULL;
const double *x;
int i, j, t, bigt;
int n, err = 0;
n = pmod->full_n;
ahat = malloc(n * sizeof *ahat);
if (ahat == NULL) {
return E_ALLOC;
}
for (t = 0; t < ... | panel_model_add_ahat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *panel_model_xpxinv(MODEL *pmod, int *err) {
int v3;
int i;
int ia;
int j;
int m;
int k;
double s2;
gretl_matrix *X;
double x;
k = pmod->ncoeff;
if (gretl_model_get_int(pmod, "vcv_xpx")) {
gretl_model_set_int(pmod, "vcv_xpx", 0);
} else if (pmod->vcv) {
s2 = pmod->sigma * p... | static gretl_matrix *panel_model_xpxinv(MODEL *pmod, int *err) {
gretl_matrix *X;
int k = pmod->ncoeff;
double x;
int i, j, m;
#if 0
fprintf(stderr, "panel_model_xpxinv...\n");
#endif
if (gretl_model_get_int(pmod, "vcv_xpx")) {
gretl_model_set_int(pmod, "vcv_xpx", 0);
} else if (pmod->vcv != NULL... | panel_model_xpxinv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
char *panel_obs(char *s, int t, const DATASET *dset) {
double v3;
int j;
int i;
int d;
i = t / dset->pd + 1;
j = (t + 1) % dset->pd;
v3 = log10((double)dset->pd);
d = (int)(floor(v3) + 1.0);
if (!j)
j = dset->pd;
sprintf(s, "%d:%0*d", i, d, j);
return s;
} | static char *panel_obs(char *s, int t, const DATASET *dset) {
int i = t / dset->pd + 1;
int j = (t + 1) % dset->pd;
int d = 1 + floor(log10(dset->pd));
if (j == 0) {
j = dset->pd;
}
sprintf(s, "%d:%0*d", i, d, j);
return s;
} | panel_obs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_obs_accounts(panelmod_t *pan) {
int i;
int ia;
int t;
int *uobs;
uobs = (int *)malloc(4LL * pan->nunits);
if (!uobs)
return 12;
pan->NT = 0;
pan->effn = 0;
pan->Tmax = 0;
pan->Tmin = pan->T;
for (i = 0; i < pan->nunits; ++i) {
uobs[i] = 0;
for (t = 0; t < pan->T; ++t) {
... | static int panel_obs_accounts(panelmod_t *pan) {
int *uobs;
int i, t, bigt;
uobs = malloc(pan->nunits * sizeof *uobs);
if (uobs == NULL) {
return E_ALLOC;
}
pan->NT = 0;
pan->effn = 0;
pan->Tmax = 0;
pan->Tmin = pan->T;
for (i = 0; i < pan->nunits; i++) {
uobs[i] = 0;
for (t = 0; t < ... | panel_obs_accounts | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_os_special(MODEL *pmod, DATASET *dset, const char *vname,
gretlopt opt, PRN *prn) {
int v6;
char *v7;
char *v8;
int err;
_BOOL4 named_save;
int s;
int nfc;
int vi;
int yno;
gretl_matrix *fc;
double *yhat;
char **Sr;
DATASET *fset;
const char *mask;
char **Sc;... | static int panel_os_special(MODEL *pmod, DATASET *dset, const char *vname,
gretlopt opt, PRN *prn) {
DATASET *fset = fetch_full_dataset();
int named_save = *vname != '\0';
gretl_matrix *fc = NULL;
double *yhat = NULL;
char *mask = dset->submask;
char **Sr = NULL;
int vi, s;
i... | panel_os_special | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double panel_overall_test(MODEL *pmod, panelmod_t *pan, int nskip,
gretlopt opt) {
int i;
int k;
double test;
int *omitlist;
omitlist = 0;
if (pmod->ncoeff == 1)
return NAN;
if (nskip > 0) {
k = *pmod->list - nskip - 2;
omitlist = gretl_list_new(k);
for (i = 1; i... | static double panel_overall_test(MODEL *pmod, panelmod_t *pan, int nskip,
gretlopt opt) {
double test = NADBL;
int *omitlist = NULL;
if (pmod->ncoeff == 1) {
return test;
}
if (nskip > 0) {
int i, k = pmod->list[0] - nskip - 2;
omitlist = gretl_list_new(k);
... | panel_overall_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_overlay_ts_plot(const int vnum, const DATASET *dset, gretlopt opt) {
double *v4;
int v5;
gretlopt optb;
int vg;
int use;
int strip;
int nunits;
int panel_labels;
int maxlen;
int i;
int t;
int s;
int T;
int err;
int single_series;
int nv;
int u0;
int s0;
gchar *literal;
... | static int panel_overlay_ts_plot(const int vnum, const DATASET *dset,
gretlopt opt) {
DATASET *gset;
int u0, nunits, T = dset->pd;
int *list = NULL;
gchar *literal = NULL;
gchar *title = NULL;
const double *obs = NULL;
series_table *gst = NULL;
const char *sval;
int vg... | panel_overlay_ts_plot | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_padding_rows(const DATASET *dset) {
int missrow;
int nmiss;
int i;
int t;
nmiss = 0;
for (t = dset->t1; t <= dset->t2; ++t) {
missrow = 1;
for (i = 1; i < dset->v; ++i) {
if (fabs(dset->Z[i][t]) <= 1.797693134862316e308) {
missrow = 0;
break;
}
}
if (mi... | int panel_padding_rows(const DATASET *dset) {
int missrow, nmiss = 0;
int i, t;
for (t = dset->t1; t <= dset->t2; t++) {
missrow = 1;
for (i = 1; i < dset->v; i++) {
if (!na(dset->Z[i][t])) {
missrow = 0;
break;
}
}
if (missrow) {
nmiss++;
}
}
return nmi... | panel_padding_rows | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_plotvar_code(const DATASET *dset) {
int pd;
pd = dset->panel_pd;
switch (pd) {
case 0:
return 0;
case 1:
return 3;
case 4:
return 4;
case 12:
return 5;
case 24:
return 9;
}
if ((pd == 5 || pd == 6 || pd == 7 || pd == 52) && dset->panel_sd0 > 10000.0)
return 6;
if... | static int panel_plotvar_code(const DATASET *dset) {
int pd = dset->panel_pd;
if (pd == 0) {
return 0;
} else if (pd == 1) {
return PLOTVAR_ANNUAL;
} else if (pd == 4) {
return PLOTVAR_QUARTERS;
} else if (pd == 12) {
return PLOTVAR_MONTHS;
} else if (pd == 24) {
return PLOTVAR_HOURLY;
... | panel_plotvar_code | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_resample_series(const double *x, double *y, const DATASET *dset) {
int v4;
int i;
int t;
int s;
int n;
int T;
int j;
int *z;
n = panel_sample_size(dset);
T = dset->pd;
if (n <= 1)
return 2;
z = (int *)malloc(4LL * n);
if (!z)
return 12;
gretl_rand_int_minmax(z, n, dset->t1... | static int panel_resample_series(const double *x, double *y,
const DATASET *dset) {
int n = panel_sample_size(dset);
int T = dset->pd;
int i, j, t, s;
int u1, u2;
int *z;
if (n <= 1) {
return E_DATA;
}
z = malloc(n * sizeof *z);
if (z == NULL) {
return E_ALLO... | panel_resample_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_robust_vcv(MODEL *pmod, panelmod_t *pan, const DATASET *dset) {
double *v3;
double *vcv;
int v5;
double *v6;
int err;
int i;
int j;
int s;
int k;
gretl_matrix *XX;
gretl_matrix *W;
gretl_matrix *V;
unsigned long v17;
v17 = __readfsqword(0x28u);
W = 0;
V = 0;
XX = 0;
k = pm... | static int panel_robust_vcv(MODEL *pmod, panelmod_t *pan, const DATASET *dset) {
gretl_matrix *W = NULL;
gretl_matrix *V = NULL;
gretl_matrix *XX = NULL;
int k = pmod->ncoeff;
int err = 0;
W = gretl_zero_matrix_new(k, k);
V = gretl_matrix_alloc(k, k);
if (W == NULL || V == NULL) {
err = E_ALLOC;
... | panel_robust_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_sample_size(const DATASET *dset) {
int ret;
ret = 0;
if (dset && dset->structure == 2)
return (dset->t2 - dset->t1 + 1) / dset->pd;
return ret;
} | int panel_sample_size(const DATASET *dset) {
int ret = 0;
if (dataset_is_panel(dset)) {
ret = (dset->t2 - dset->t1 + 1) / dset->pd;
}
return ret;
} | panel_sample_size | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_set_varying(panelmod_t *pan, const MODEL *pmod) {
int i;
pan->varying = (char *)calloc(pmod->ncoeff, 1u);
if (!pan->varying)
return 12;
for (i = 0; i < pmod->ncoeff; ++i) {
if (var_is_varying(pan, pmod->list[i + 2]))
pan->varying[i] = 1;
}
return 0;
} | static int panel_set_varying(panelmod_t *pan, const MODEL *pmod) {
int i;
pan->varying = calloc(pmod->ncoeff, 1);
if (pan->varying == NULL) {
return E_ALLOC;
}
for (i = 0; i < pmod->ncoeff; i++) {
if (var_is_varying(pan, pmod->list[i + 2])) {
pan->varying[i] = 1;
}
}
return 0;
} | panel_set_varying | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *panel_shrink(const double *x, int noskip, const DATASET *dset,
int *err) {
int v5;
int v6;
int s;
int i;
int t;
int k;
int gotit;
int n;
int T;
int i2;
gretl_matrix *m;
if (dset && dset->structure == 2) {
n = panel_sample_size(dset);
T = dset->pd... | gretl_matrix *panel_shrink(const double *x, int noskip, const DATASET *dset,
int *err) {
gretl_matrix *m = NULL;
int n, T;
if (!dataset_is_panel(dset)) {
*err = E_DATA;
return NULL;
}
n = panel_sample_size(dset);
T = dset->pd;
m = gretl_column_vector_alloc(n);
if (m... | panel_shrink | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_smpl_special(gretlopt opt) { return opt & 0x100000; } | static int panel_smpl_special(gretlopt opt) { return opt & OPT_U; } | panel_smpl_special | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int panel_specification_test(MODEL *pmod, DATASET *dset, gretlopt opt,
PRN *prn) {
char *v4;
char *v6;
char *v7;
if (pmod->ci == 88 && dset && dset->structure == 2) {
if (pmod->ifc) {
if (balanced_panel(dset)) {
panel_diagnostics(pmod, dset, opt, prn);
ret... | int panel_specification_test(MODEL *pmod, DATASET *dset, gretlopt opt,
PRN *prn) {
if (pmod->ci != OLS || !dataset_is_panel(dset)) {
pputs(prn, _("This test is only relevant for pooled models\n"));
return 1;
}
if (pmod->ifc == 0) {
pputs(prn, _("This test requires that th... | panel_specification_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.