On 14.08.2022 15:44, Cottrell, Allin wrote:
On Sun, Aug 14, 2022 at 6:07 AM Marcin Błażejowski
<marcin(a)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