Announcement

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

  • using not allowed r(101); help!

    I'm completing a replication for stata for my hw.

    here is the code:

    . ssc install outreg2
    checking outreg2 consistency and verifying not already installed...
    installing into /Users/catherine/Library/Application Support/Stata/ado/plus/...
    installation complete.

    . qui xi: reg mrate legal outreg2 beertax using "../Output/table52.xls", replace bdec(2)
    > sdec(2) excel noaster
    using not allowed
    r(101);

    for more info: https://www.masteringmetrics.com/resources/
    I'm recreating table 5.2

  • #2
    -outreg2- is a separate command from -qui xi: reg-. It has to start on a new line.

    Comment


    • #3
      In general we don't support work on assignments, as the FAQ explains.

      But I can't see any mention of regress or outreg2 in the code that applies. But one error is that you've written two commands on one line.

      Code:
      qui xi: reg mrate legal
      
      outreg2 beertax using "../Output/table52.xls", replace bdec(2) sdec(2) excel noaster
      I suspect some other errors in the first command, but I will stop there.

      Comment

      Working...
      X