Announcement

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

  • what does curly brackets mean in stata help files?

    I know square brackets mean optional components, vertical bar means OR, but what do curly brackets {} mean?

    An example:
    "
    rangestat slist [if] [in] , interval(keyvar low high) [ options ]

    where slist is composed of one or more of the following

    (stat) { varlist | new_varname=varname } [ { varlist | new_varname=varname } ...]

    (flex_stat) varlist

    "

  • #2
    They mean “choose one from this list”.



    Comment


    • #3
      Thank you for your reply, Nick. but isn't that what the vertical bar "|" (OR) mean?

      Originally posted by Nick Cox View Post
      They mean “choose one from this list”.


      Comment


      • #4
        { } delimits the list; | separates the items. Choose one: { rich | beautiful | excellent coder }

        Comment


        • #5
          Thank you again, Nick! The example is excellent.

          Originally posted by Nick Cox View Post
          { } delimits the list; | separates the items. Choose one: { rich | beautiful | excellent coder }

          Comment

          Working...
          X