Announcement

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

  • hyperlink in help file example does not accept an interaction term

    Hi All,

    I am writing a help file for a new command and it appears that the hyperlink for an example using an interaction term seems to stop after the first term.

    When the user clicks on the logit model described below, the actual logit model that runs only includes the following:

    logit mbsmoke mmarried c.mage

    It seems that the scml does not accept the ##?

    Any help will be appreciated

    Ariel




    **** scml code in help file ****************

    {pstd}Load example data{p_end}
    {p 4 8 2}{stata "webuse cattaneo2, clear":. webuse cattaneo2, clear}{p_end}

    {p 4 8 2}{stata "logit mbsmoke mmarried c.mage##c.mage fbaby medu":. logit mbsmoke mmarried c.mage##c.mage fbaby medu}{p_end}

    ************ end code ***************************

    ****** actual output from model*************

    . logit mbsmoke mmarried c.mage

    Iteration 0: log likelihood = -2230.7484
    Iteration 1: log likelihood = -2115.3679
    Iteration 2: log likelihood = -2109.8086
    Iteration 3: log likelihood = -2109.8051
    Iteration 4: log likelihood = -2109.8051

    Logistic regression Number of obs = 4642
    LR chi2(2) = 241.89
    Prob > chi2 = 0.0000
    Log likelihood = -2109.8051 Pseudo R2 = 0.0542

    ------------------------------------------------------------------------------
    mbsmoke | Coef. Std. Err. z P>|z| [95% Conf. Interval]
    -------------+----------------------------------------------------------------
    mmarried | -1.18569 .0880799 -13.46 0.000 -1.358324 -1.013057
    mage | -.0050086 .0075872 -0.66 0.509 -.0198793 .0098621
    _cons | -.61105 .1809404 -3.38 0.001 -.9656866 -.2564134
    ------------------------------------------------------------------------------

  • #2
    Ariel,

    In SMCL, ## signifies a hypertext link to a specific place within the document (see the {help args##markername} entry in the SMCL help file). Surrounding the command in quotes only helps if there is a colon in the command. I couldn't figure out how to get get SMCL to interpret the ## any differently, but maybe there's an obscure trick out there somewhere.

    Regards,
    Joe

    Comment


    • #3
      Thanks, Joe. Perhaps the Stata folks could clarify the issue for us.

      Comment

      Working...
      X