Announcement

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

  • igrowup

    AM having trouble running this syntax.... Am getting an error (shown below) and I don't know how to fix it. Any help will be appreciated.

    . /* Fill in the macro parameters to run the command */
    . igrowup_restricted reflib datalib datalab sex agemons ageunit weight ///
    > height measure oedema sw

    Please wait, programme is running.............

    ..............................................
    __000005 not found
    r(111);

    http://www.who.int/childgrowth/software/en/

  • #2
    David,

    You are referring to a pair of ado files written by the World Health Organization (note: the FAQ does request that we all clarify the source of any commands referenced on the forum, e.g. from Statistical Software Components or elsewhere).

    r(111) is the error code for when Stata can't find a variable. Glancing at the help file, it looks like you are supposed to type in variable names or file paths from your dataset that reference, for example, the path where you stored the WHO sample datasets (reflib), or the names of the variables that reference age (in months) and sex. That is, you should type something like:

    Code:
    igrowup_restricted "C:\My Documents\WHO" "C:\My Documents\WHO" datalab_z_st ...
    Basically, each 'variable' in your syntax needs to be replaced by something else. You need to read the WHO documentation for their .ado files.

    For completeness: the help file says you need at least Stata 7, which I assume you have. Aside from that, you need to open and run the .ado file before calling it in the command line or another do file. I assume you did this, or else you would have got an error message about the program not existing.
    Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

    When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

    Comment

    Working...
    X