Announcement

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

  • Mac vs Windows

    Hello Community!

    Happy International Women's Day!

    I was wondering if anyone has any idea on how I can troubleshoot this issue. I tried to run the command below on a mac but it did not work:

    local counter=0
    foreach var of varlist x1ses x1mthid x1mthuti x1mtheff x1mthint ///
    x1tmeff x1tmexp s1hrtv x1hhnumber {
    corr x1txmtscor `var'
    return list
    local ++counter
    putexcel J`counter'=matrix(r(rho)) I`counter'="`var'"
    }

    BUT the command works perfectly on a Windows. The error message I get on the Mac is "x1ses": expression must be enclosed in ()

    Any help is very much appreciated!

    Thank you always.


  • #2
    Is it possible that the Windows system is running a different version of Stata than the Mac is? The about command will tell you exactly what version and revision each is running.

    Comment


    • #3
      You can always put trace on and see exactly how Stata is interpreting your input. Stata tip 26 talks about compatibility between Mac and Windows, but doesn't seem to have anything relevant to your problem.

      Comment


      • #4
        For future references I believe the solution was to pute "()" around I`counter'=("`var'"). It worked.

        Comment

        Working...
        X