Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • zscore06 not calculating waz06, bmiz06 and whz06 except haz06

    Hi
    I am using Stata 13 for Windows 7 and i have run the zscore06 package. But when i run the zscore06 command it is not calculating waz06, bmiz06 and whz06 except haz06. What can be the problem? Please help.

    Thanks,
    Oscar

  • #2
    -zscore06- is not an official Stata command--it is user-written and available on SSC. In order to troubleshoot this problem, one would need to see a sample of your input data, and the exact command you gave, and the exact response that Stata gave you.

    Please be sure to use -dataex- to post samples of your input data and output data. (-dataex- is also a user written command. -ssc install dataex-, then follow the instructions in -help dataex-.) To be sure you show exactly the command you gave, do not retype it: copy it from the Results window or your log file and paste it into the Forum editor.

    Comment


    • #3
      Thanks Clyde,
      Here is a command i used:

      . zscore06, a(age_mo) s(sex) h(height) w(weight) female(0)male(1)o(edema)oyes(0)ono(1)

      Code:
      * Example generated by -dataex-. To install: ssc install dataex
      clear
      input int age_mo byte sex double(height weight) long edema double(haz06 waz06 whz06 bmiz06)
      24 0   76 10.405 1 -3.02 . . .
      24 1 86.2 11.225 1   -.3 . . .
      24 1 82.4 10.265 1 -1.55 . . .
      23 0   77   9.24 1 -2.68 . . .
      23 0 85.4 11.775 1  -.04 . . .
      23 1 82.2 11.325 1 -1.58 . . .
      23 0 78.4   9.45 1 -2.24 . . .
      23 0 83.2   9.45 1  -.73 . . .
      23 0 81.2 11.615 1 -1.36 . . .
      23 1   81 11.475 1 -1.98 . . .
      end
      label values sex gender
      label def gender 0 "Female", modify
      label def gender 1 "Male", modify
      label values edema yesno
      label def yesno 1 "No", modify

      Comment


      • #4
        Oscar:
        as far as I can get it, it seems that you have missing values for all the observations in -waz06-, -whz06- and -bmiz06- variables.
        If this were the case, no wonder that Stata does not give you anything in return for those variables.
        Kind regards,
        Carlo
        (Stata 19.0)

        Comment


        • #5
          Carlo,
          The point is that when i run -zscore06, a(age_mo) s(sex) h(height) w(weight) female(0)male(1)o(edema)oyes(0)ono(1)-. Stata is giving me missing values in -waz06-, -whz06- and -bmiz06- variables except in -haz06 variable.

          Thanks,
          Oscar

          Comment


          • #6
            Oscar:
            the following code (oedema specification seems to be the problem) seems to do what you're after:
            Code:
            zscore06, a(age_mo) s(sex) h(height) w(weight) female(0)male(1)oyes(0)ono(1)
            Kind regards,
            Carlo
            (Stata 19.0)

            Comment


            • #7
              Thanks Carlo,
              It has worked.

              Oscar

              Comment


              • #8
                I don't think zscore06 is a correct command.
                It has many typos in the help file and the ado file.

                And it cannot compute correctly,
                Code:
                . set obs 1
                Number of observations (_N) was 0, now 1.
                
                . gen age=17*12
                
                . gen sex=1
                
                . gen height=170
                
                . gen weight=60
                
                . zscore06,a(age) s(sex) h(height) w(weight)
                
                Z-scores (haz06, waz06, bmiz06 and whz06) succesfully calculated
                *** note 1: 99 indicates that height, weight or age were out of the reference value range
                *** note 2: no zscores are calculated for children with missing age
                
                . sum *06
                
                    Variable |        Obs        Mean    Std. dev.       Min        Max
                -------------+---------------------------------------------------------
                       haz06 |          1          99           .         99         99
                       waz06 |          1          99           .         99         99
                       whz06 |          1          99           .         99         99
                      bmiz06 |          0
                and when you look at its correlated file, there are so many missing values Click image for larger version

Name:	a969e5e27318c852be4933f03162249.png
Views:	3
Size:	211.5 KB
ID:	1627426
                Attached Files

                Comment

                Working...
                X