Announcement

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

  • What could be wrong with the code

    . quietly forval i/`=_N'{
    .
    . foreach v of var Topic_1-Topic_4 {
    .
    . local all `"`all' `"`=`v'[`i']'"'"'
    .
    . }
    .
    . local all : list uniq all
    .
    . replace _NTopics = `: list sizeof all' in `i'
    .
    . local all
    .
    . }
    invalid syntax
    r(198);


  • #2
    Welcome to Statalist.

    You have accidentally posted your topic in Statalist's Mata Forum, which is used for discussions of Stata's Mata language, which is different than Stata's command language, and different than Stata's matrix commands. Your question will see a more appropriate and much larger audience if you post it in Statalist's General Forum.

    Also, if you have not already done so, take a look at the Statalist FAQ linked to at the top of this page for posting guidelines and suggestions.

    Comment


    • #3
      Thank you for the guide.

      Comment

      Working...
      X