Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re :makematrix


From   "Naji Nassar \(MIReS\)" <[email protected]>
To   <[email protected]>
Subject   st: Re :makematrix
Date   Mon, 13 Oct 2003 14:48:29 +0200

Hi all,

I think the problem is coming from handling missing values.
It seems that MAKEMATRIX is making 'listwise deletion' ie, any observation
which have a missing value in at least one of the 5 variables, is just
deleted. So the means are computed over the 1351 observations (the same for
all the variables) rather than the 1442 to 1584 observation in the SUMMARIZE
command

Regards
Naji Nassar

-----Message d'origine-----
De : [email protected]
[mailto:[email protected]]De la part de Nicola
Tommasi
Envoye : lundi 13 octobre 2003 08:45
A : [email protected]
Objet : st: Mime-Version: 1.0


dear all,

I believe there is a bug in the makematrix command.

Evidence of bug :

. summ d09a_rc d09b_rc d09c_rc d09d_rc score_9;

     Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
      d09a_rc |      1478    .7814614    .9512177         -2          2
      d09b_rc |      1442    .9036061    .9401232         -2          2
      d09c_rc |      1529    1.204709     .875393         -2          2
      d09d_rc |      1493    1.139317    1.007686         -2          2
      score_9 |      1584    1.000053    .7941874         -2          2

. makematrix tab9tot, from( r(N) r(mean) r(sd) r(min) r(max) ): su d09a_rc
d09b_rc d09c_rc d09d_rc score_9;

tab9tot[5,5]
                  N       mean         sd        min        max
d09a_rc       1351  .78756477  .94986591         -2          2
d09b_rc       1351  .92376018  .94168773         -2          2
d09c_rc       1351  1.2398224  .85734195         -2          2
d09d_rc       1351  1.1591414   .9980665         -2          2
score_9       1351  1.0275722  .77329762         -2          2


Nicola Tommasi




-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
         dott. Nicola Tommasi
         Centro Interdipartimentale di Documentazione Economica (C.I.D.E)
         University of Verona
         via dell'Artigliere, 19
         37129 Verona (Italy)
         tel.: +39-045-8028048
         fax.: +39-045-8028047
-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index