Announcement

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

  • r(132) too few quotes when making a table with forvalues and local macros

    Hi!

    (This is my first post, so bear with me!) I'm using Stata16.

    I'm following this helpful text and got a problem with Example 3: https://blog.stata.com/2017/04/06/cr...ary-variables/
    (I'm sorry, my data is behind network barriers, so I will have to post screen dumps instead of text).
    [hearimp_nt2aud_cat] is a categorical variable with 3 categories (0-2)

    Click image for larger version

Name:	PrintScreen.png
Views:	2
Size:	76.6 KB
ID:	1629682



    When using set trace on I get this answer when running the command:
    Click image for larger version

Name:	PrintScreen2.png
Views:	1
Size:	38.4 KB
ID:	1629681


    I have tried helpful tips here on Statalist like local cellcounts, and restarting Stata. Thankful for any help!
    Attached Files

  • #2
    because you did not post within CODE blocks (please read the FAQ), I can't seem to copy-and-paste the relevant part - however, if you look at the two lines just above the error message, you will see that there are three double quote marks but there need to be either 2 or 4 (or some other even number)

    Comment


    • #3
      Oh. That was an embarassing mistake. Thanks a lot!! Now it works.

      Comment

      Working...
      X