Announcement

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

  • icalc, intspec - "invalid 'focal' " error

    Hi,

    I'm trying to learn how to use Kaufman's* 'icalc' suite of commands to probe interactions and I'm running into problems on basically the first step (the 'intspec' command).

    I try this:

    Code:
    sysuse auto.dta, clear
    
    gen repxtrunk = rep78*trunk
    
    reg price rep78 trunk repxtrunk
    
    intspec, focal(trunk) main((rep78) (trunk)) int2(repxtrunk)

    Even with the most basic specification of 'intspec', I get this error:

    HTML Code:
    invalid 'focal'
    r(198);

    I've looked around for a solution but I haven't found anything. I've even copied the exact examples from pages 189-90 of that book with the same result.

    If anyone has any idea, I would love to hear!

    Owen Gallupe

    p.s., using Stata/MP 14.2 for Mac.

    To install 'icalc':

    Code:
    net from http://www.icalcrlk.com
    and click on first link.

    * Kaufman, R. L. (2019). Interaction Effects in Linear and Generalized Linear Models. Thousand Oaks, CA: SAGE Publications Inc. http://us.sagepub.com/en-us/nam/inte...els/book253602.




  • #2
    Write to the author. There is a fundamental mismatch between the help file and the commands that he provides. In intspec.ado there is not a single call to syntax; the file starts with

    Code:
    program intspec, rclass
    version 14.2
    args trash
    ...
    implying that the command does not do anything with the input you provide.

    Best
    Daniel

    Comment


    • #3
      Thank you kindly for looking into this, Daniel. I will follow up with the author.

      Regards,

      Owen

      Comment


      • #4
        The problem has been solved. There was an errant comma which was causing problems. A typo in the help file has been corrected. Thank you to the author for addressing this so quickly!

        This now works:

        Code:
        sysuse auto.dta, clear
        
        gen repxtrunk = rep78*trunk
        
        reg price rep78 trunk repxtrunk
        
        intspec focal(trunk) main((rep78) (trunk)) int2(repxtrunk)
        Anyone who previously downloaded these files might want to run an update:

        Code:
        adoupdate icalc, update
        Regards,

        Owen

        Comment

        Working...
        X