Announcement

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

  • eventstudy2 "variable __00001M already defined”

    Hello!
    I am doing an eventstudy using eventstudy2 and I get the error message "variable __00001M already defined”.
    What could be the issue?

    Code:

    eventstudy2 stockid date using stock_returns,returns(returnz) model(FM) marketfile(index_returns) marketreturn(returnz) idmarket(marketid) evwlb(-10) evwub(10) eswlb(-250) eswub(-21)

    Attached Files

  • #2
    mostly likely a tempvar has been created that has not been deleted.

    try drop *00001M

    and run it again,

    if fails again,

    set trace on

    and see if you can find the line that's causing the problem.



    Comment


    • #3
      maybe this thread on the saving of temporary variables will shed some light.
      Devra Golbe
      Professor Emerita, Dept. of Economics
      Hunter College, CUNY

      Comment


      • #4
        you have same column names for market and stock return. change one of them.

        Comment

        Working...
        X