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
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
Comment