Announcement

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

  • score06 giving me error

    Hello,

    I run the following zscore06 commands and giving me the error message:

    zscore06, a(child_valid_age)
    s(child_sex) female(0) male(1)
    h(height_cms)
    w(weight_kg)
    measure(hieght_measured) recum(1) stand(2)


    the error message:
    zscore06, a(child_valid_age)
    option s() required
    r(198);

  • #2
    You appear to have continued your command on several lines. Stata stopped paying attention after the first line, before it got to the s(child_sex) option you provided.

    If this command is in a do-file, it needs line continuation indicators at the end of each continued line.
    Code:
    zscore06, a(child_valid_age) ///
    s(child_sex) female(0) male(1) ///
    h(height_cms) ///
    w(weight_kg) ///
    measure(hieght_measured) recum(1) stand(2)
    If this is a command you typed into Stata's Command window, or copy-and-pasted it there, the Command window does not allow continuation lines. You have to just keep typing and allow the command to "wrap" in the Command window.
    Code:
    zscore06, a(child_valid_age) s(child_sex) female(0) male(1) h(height_cms) w(weight_kg) measure(hieght_measured) recum(1) stand(2)

    Comment


    • #3
      Thank you. I am trying it again.

      Comment


      • #4
        Hi,
        I also tried the following, but with the message:

        //egen WLZ_WHO=zanthro(weight,wl,WHO), xvar(height) gender(gender) gencode(male=1, fem
        > //ale=2) nocutoff
        //(Z values generated for 3927 cases)
        //(gender was assumed to be coded male=1, female=2)
        //(Z values can be missing because xvar is nonpositive or otherwise
        //out of range for the chart code, or the gender variable is missing)
        //(9257 missing values generated)//


        Is there away how I can further define the variable height, for children 24months as length between 45-100cm and 6as standing height 65-200cm as said by WHO.
        How can I modify the code with [if] and [in] as suggested in stata journal?

        OR any guidance you may have.
        Thank you,

        Comment

        Working...
        X