Announcement

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

  • Parsing values from keyboard into a tempvar of an ado-file

    Hello, new to the forum.


    I am working on my thesis(i think that's how it is called in English :P), which is about converting SMD's to odds ratios. Actually i try to make an ado-file, using the formulas of two scientists(Furukawa, Suissa). At some point, the first formula requires the definition of a cut-off score, which it can be different according to the dataset we examine. So all in all i would like to know if there is a command ,like scanf in typical programming languages, in order for somebody using my ado-file to parse a value into the cutoff score tempvar of my ado file. Sorry for my English, i hope the things I said, make some sense :D.

  • #2
    display can read input from the command line. However, in Stata, you would typically pass such arguments as options. The syntax might look like this:

    Code:
    my_command , cutoff(#)

    Comment

    Working...
    X