Announcement

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

  • Problem as built-in commands are not recognized by Stata

    Hello,
    I am using Stata (version 16.1) for my master thesis and I am still a beginner. I noticed that when I run the code -which inrange- Stata always gives me the following error feedback.

    Code:
    command inrange not found as either built-in or ado-file
    r(111);
    As I understand the information of the help-command, "inrange" is a built-in command, so I wonder why I get this error message. As described in this thread (https://www.statalist.org/forums/for...ed-in-stata-15), I have run the command -update all, force- and also tried solving it by reinstalling Stata. However, all this did not help. Searching other threads on Statalist or in general on Google, I have not found an answer either. I would be grateful for any tips!

    Best,
    Daniel
    Last edited by Daniel Abler; 23 Apr 2021, 11:11.

  • #2
    -inrange()- is a function, not a command, so it has no corresponding ado-file. The error you describe doesn't indicate any problems with your installation.

    Code:
    . inrange
    command inrange is unrecognized
    r(199);
    
    . di inrange(2,1,5)
    1

    Comment


    • #3
      Thank you Ali for your helpful comment. However, I think the problem is still there. When I enter your code, I get the following error message.

      Code:
      . di inrange (2,1,5)
      inrange not found
      r(111);

      Comment


      • #4
        You included a space between inrange and the first parenthesis. Remove that and it should work.

        Comment

        Working...
        X