On Mon, 18 Jun 2007, andreas.karlsson(a)ltv.se wrote:
> On Mon, 11 Jun 2007, andreas.karlsson(a)ltv.se wrote:
>
>> Also, if it is not too hard, could you please add an option to save the
>> cross tabulation table that is produced by the xtab command as a
matrix?
>
> How much of this table do you think we should put into a matrix?
> Just the frequency counts? Allin.
I think that for a table with MxM cells of frequency counts it is most
useful to save it as an MxM matrix, and thus not include the row and column
marginal totals. These could easily be calculated anyway.
IMO, it would be nice to be able to save the matrix from a script too.
Unfortunately, the syntax for this is not exactly obvious. One possibility
could be appending a --save option to the xtab command, but then, what
should the name of the saved matrix be?
Alternatively, one may create an mxtab function, to be used as
matrix foo = mxtab(x,y)
I'd rather have this, since it may well be that one wants to store the
matrix for further processing without actually seeing it. That is a bit
more complicated to code, but it can be done.
Or is all this totally useless? Opinions?
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti