Hi,
when we perform tobit command with --guiet flag we sometimes get the
following message: "Warning: couldn't improve criterion (gradient =
6.04477e-06)", which /per se/ makes estimation not so quiet. So, the
question is: shall we leave current behavior or make 'tobit --quiet'
really quiet?
If the later, I wrote a simple patch which suppress any messages
(attached). Another possibility would be adding '--silent' flag, which I
could do either?
What do you think?
Marcin
--
Marcin Błażejowski
diff --git a/plugin/interval.c b/plugin/interval.c
index 609a849af..1b7f74051 100644
--- a/plugin/interval.c
+++ b/plugin/interval.c
@@ -1181,9 +1181,12 @@ MODEL tobit_via_intreg (int *list, double llim, double rlim,
}
if (!model.errcode) {
- /* do the actual analysis */
- model.errcode = do_interval(ilist, dset, &model,
- opt | OPT_T, prn);
+ /* do the actual analysis */
+ if (opt == OPT_Q) {
+ prn = NULL;
+ }
+ model.errcode = do_interval(ilist, dset, &model,
+ opt | OPT_T, prn);
}
clear_model_xpx(&model);
_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website:
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/