On 14.08.2022 15:44, Cottrell, Allin wrote:
On Sun, Aug 14, 2022 at 6:07 AM Marcin Błażejowski <mar...@wrzosy.nsb.pl> wrote:
Hi,

simple script:
<hansl>
open wtp.gdt
list X = 1 2 9 10 11
logit depvar 0 X --multinomial --quiet
series yhat = $yhat
xtab --zeros depvar yhat --quiet
eval $result
</hansl>

It looks like '--zeros' flag has zero effect on xtab command.
Not so. The --zeros option affects the printed table, which you have
suppressed via the --quiet flag. The $result is a matrix, and zeros
are always going to get printed in that context.
I see. But when I call 'xtab --zeros depvar yhat' the printed table doesn't have column for [ 2] (thouhgt raw for [ 2] exists). Is that correct?
What is more, line 'xtab depvar $yhat' generates an error: "Data types not 
conformable for operation" which - I believe - is unexpected.

It's clear, thnks Allin.

Marcin

--
Marcin Błażejowski
_______________________________________________
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/

Reply via email to