Announcement

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

  • Emphasis in inline code

    Be sure to watch out for the `s and 's in your local macro usage: that's `mylocal', and not 'mylocal'.

    Also, pay attention to precision in your evaluator ado-file that your estimation command calls: generate double `tmpvar0' = . . .

    The syntax would be something like the following:
    program define myprogram, rclass
    version 13.1
    syntax varlist(min=1 numeric) [if] [in], noCONStant noLog
    Note the requirements that the user to at least provide a response variable and that all variables be numeric.

    Note to Statalist forum host: apparently (a) you cannot use [font=] with [indent], and (b) two [indent]s inserts a spurious extra line in the text.

  • #2

    Number of obs = 36 R-squared = 0.5474
    Root MSE = 2.62996 Adj R-squared = 0.3399

    Source | Partial SS df MS F Prob > F
    ----------------------+----------------------------------------------------
    Model | 200.75 11 18.25 2.64 0.0227
    |
    temperature | 30.5 2 15.25 2.20 0.1321
    chemical | 12.25 1 12.25 1.77 0.1958
    temperature#chemical | 24.5 2 12.25 1.77 0.1917
    method | 42.25 1 42.25 6.11 0.0209
    temperature#method | 87.5 2 43.75 6.33 0.0062
    chemical#method | .25 1 .25 0.04 0.8508
    temperature#chemical# |
    method | 3.5 2 1.75 0.25 0.7785
    |
    Residual | 166 24 6.91666667
    ----------------------+----------------------------------------------------
    Total | 366.75 35 10.4785714


    Code:
                               Number of obs =      36     R-squared     =  0.5474
                               Root MSE      = 2.62996     Adj R-squared =  0.3399
    
                      Source |  Partial SS    df       MS           F     Prob > F
       ----------------------+----------------------------------------------------
                       Model |      200.75    11       18.25       2.64     0.0227
                             |
                 temperature |        30.5     2       15.25       2.20     0.1321
                    chemical |       12.25     1       12.25       1.77     0.1958
        temperature#chemical |        24.5     2       12.25       1.77     0.1917
                      method |       42.25     1       42.25       6.11     0.0209
          temperature#method |        87.5     2       43.75       6.33     0.0062
             chemical#method |         .25     1         .25       0.04     0.8508
       temperature#chemical# |
                      method |         3.5     2        1.75       0.25     0.7785
                             |
                    Residual |         166    24  6.91666667   
       ----------------------+----------------------------------------------------
                       Total |      366.75    35  10.4785714

    Comment


    • #3
      . anova yield temp##chem##meth

      Number of obs = 36 R-squared = 0.5474
      Root MSE = 2.62996 Adj R-squared = 0.3399

      Source | Partial SS df MS F Prob > F
      ----------------------+----------------------------------------------------
      Model | 200.75 11 18.25 2.64 0.0227
      |
      temperature | 30.5 2 15.25 2.20 0.1321
      chemical | 12.25 1 12.25 1.77 0.1958
      temperature#chemical | 24.5 2 12.25 1.77 0.1917
      method | 42.25 1 42.25 6.11 0.0209
      temperature#method | 87.5 2 43.75 6.33 0.0062
      chemical#method | .25 1 .25 0.04 0.8508
      temperature#chemical# |
      method | 3.5 2 1.75 0.25 0.7785
      |
      Residual | 166 24 6.91666667
      ----------------------+----------------------------------------------------
      Total | 366.75 35 10.4785714



      . anova yield temp##chem##meth

      Number of obs = 36 R-squared = 0.5474
      Root MSE = 2.62996 Adj R-squared = 0.3399

      Source | Partial SS df MS F Prob > F
      ----------------------+----------------------------------------------------
      Model | 200.75 11 18.25 2.64 0.0227
      |
      temperature | 30.5 2 15.25 2.20 0.1321
      chemical | 12.25 1 12.25 1.77 0.1958
      temperature#chemical | 24.5 2 12.25 1.77 0.1917
      method | 42.25 1 42.25 6.11 0.0209
      temperature#method | 87.5 2 43.75 6.33 0.0062
      chemical#method | .25 1 .25 0.04 0.8508
      temperature#chemical# |
      method | 3.5 2 1.75 0.25 0.7785
      |
      Residual | 166 24 6.91666667
      ----------------------+----------------------------------------------------
      Total | 366.75 35 10.4785714


      Comment


      • #4
        [pre]Logistic regression Number of obs = 74
        LR chi2(1) = 11.49
        Prob > chi2 = 0.0007
        Log likelihood = -39.28864 Pseudo R2 = 0.1276

        ------------------------------------------------------------------------------
        foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
        -------------+----------------------------------------------------------------
        mpg | .1597621 .0525876 3.04 0.002 .0566922 .262832
        _cons | -4.378866 1.211295 -3.62 0.000 -6.752961 -2.004771
        ------------------------------------------------------------------------------[/pre]

        [textarea]Logistic regression Number of obs = 74
        LR chi2(1) = 11.49
        Prob > chi2 = 0.0007
        Log likelihood = -39.28864 Pseudo R2 = 0.1276

        ------------------------------------------------------------------------------
        foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
        -------------+----------------------------------------------------------------
        mpg | .1597621 .0525876 3.04 0.002 .0566922 .262832
        _cons | -4.378866 1.211295 -3.62 0.000 -6.752961 -2.004771
        ------------------------------------------------------------------------------

        [/textarea]

        [samp]Logistic regression Number of obs = 74
        LR chi2(1) = 11.49
        Prob > chi2 = 0.0007
        Log likelihood = -39.28864 Pseudo R2 = 0.1276

        ------------------------------------------------------------------------------
        foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
        -------------+----------------------------------------------------------------
        mpg | .1597621 .0525876 3.04 0.002 .0566922 .262832
        _cons | -4.378866 1.211295 -3.62 0.000 -6.752961 -2.004771
        ------------------------------------------------------------------------------

        [/samp]

        [sp]Logistic regression Number of obs = 74
        LR chi2(1) = 11.49
        Prob > chi2 = 0.0007
        Log likelihood = -39.28864 Pseudo R2 = 0.1276

        ------------------------------------------------------------------------------
        foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
        -------------+----------------------------------------------------------------
        mpg | .1597621 .0525876 3.04 0.002 .0566922 .262832
        _cons | -4.378866 1.211295 -3.62 0.000 -6.752961 -2.004771
        ------------------------------------------------------------------------------

        [/sp]

        [invisible]****[/invisible]

        [HL]****[/HL]

        [var]Logistic regression Number of obs = 74
        LR chi2(1) = 11.49
        Prob > chi2 = 0.0007
        Log likelihood = -39.28864 Pseudo R2 = 0.1276

        ------------------------------------------------------------------------------
        foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
        -------------+----------------------------------------------------------------
        mpg | .1597621 .0525876 3.04 0.002 .0566922 .262832
        _cons | -4.378866 1.211295 -3.62 0.000 -6.752961 -2.004771
        ------------------------------------------------------------------------------
        [/var]


        Comment


        • #5
          As shown below:
          Attached Files
          Last edited by Joseph Coveney; 16 Apr 2014, 21:40. Reason: [attach]attachmentid[/attach] "The [attach] tag allows you to display an attachment in your post rather than at the bottom. It will only display attachments that belong to the post in which it is

          Comment


          • #6
            Logistic*regression*******************************Number*of*obs***=*********74
            **************************************************LR*chi2(1)******=******11.49
            **************************************************Prob*>*chi2*****=*****0.0007
            Log*likelihood*=**-39.28864***********************Pseudo*R2*******=*****0.1276

            ------------------------------------------------------------------------------
            *****foreign*|******Coef.***Std.*Err.******z****P>|z|*****[95%*Conf.*Interval]
            -------------+----------------------------------------------------------------
            *********mpg*|***.1597621***.0525876*****3.04***0.002*****.0566922*****.262832
            *******_cons*|**-4.378866***1.211295****-3.62***0.000****-6.752961***-2.004771
            ------------------------------------------------------------------------------



            There's gotta be a better way.

            Comment


            • #7
              What other bulletin boards around the Internet have and Statalist doesn't.

              A topic. A post.

              Comment


              • #8
                Testing a new [output] ... [/output] bbcode. It should be similar to [code] .. [/code], but with a plain white background and no 'Code:' header in front of it:


                . sysuse auto
                (1978 Automobile Data)

                . regress mpg weight

                Source | SS df MS Number of obs = 74
                -------------+------------------------------ F( 1, 72) = 134.62
                Model | 1591.9902 1 1591.9902 Prob > F = 0.0000
                Residual | 851.469256 72 11.8259619 R-squared = 0.6515
                -------------+------------------------------ Adj R-squared = 0.6467
                Total | 2443.45946 73 33.4720474 Root MSE = 3.4389

                ------------------------------------------------------------------------------
                mpg | Coef. Std. Err. t P>|t| [95% Conf. Interval]
                -------------+----------------------------------------------------------------
                weight | -.0060087 .0005179 -11.60 0.000 -.0070411 -.0049763
                _cons | 39.44028 1.614003 24.44 0.000 36.22283 42.65774
                ------------------------------------------------------------------------------


                Here is what [code] ... [/code] would do:

                Code:
                . sysuse auto
                (1978 Automobile Data)
                
                . regress mpg weight
                
                      Source |       SS       df       MS              Number of obs =      74
                -------------+------------------------------           F(  1,    72) =  134.62
                       Model |   1591.9902     1   1591.9902           Prob > F      =  0.0000
                    Residual |  851.469256    72  11.8259619           R-squared     =  0.6515
                -------------+------------------------------           Adj R-squared =  0.6467
                       Total |  2443.45946    73  33.4720474           Root MSE      =  3.4389
                
                ------------------------------------------------------------------------------
                         mpg |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
                -------------+----------------------------------------------------------------
                      weight |  -.0060087   .0005179   -11.60   0.000    -.0070411   -.0049763
                       _cons |   39.44028   1.614003    24.44   0.000     36.22283    42.65774
                ------------------------------------------------------------------------------

                Comment


                • #9
                  That's not going to work as easily as I thought it might. Adding a new BBcode is easy. However, it turns out that the 'code' BBcode is very special. It doesn't just wrap whatever is in it in the appropriate HTML. There is a special hard-coded function in the forum software source code which strips out things like line-breaks and other characters for the contents of the 'code' tag. It is going to take a bit of a 'hack' to do something like this for a separate output tag.

                  We'll wait until the next version of the forum software is released to do this. We want to patch the existing code with the updates from the forthcoming new version before making any 'hacks' to it like this.

                  Comment


                  • #10
                    Alan, thanks for taking the time to look into this. I appreciate the hard work you're doing to support Statalist's new forum, and look forward to using the new BBCode.

                    Comment


                    • #11
                      "Paste from Word"

                      Logistic regression Number of obs = 74
                      LR chi2(1) = 11.49
                      Prob > chi2 = 0.0007
                      Log likelihood = -39.28864 Pseudo R2 = 0.1276

                      ------------------------------------------------------------------------------
                      foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
                      -------------+----------------------------------------------------------------
                      mpg | .1597621 .0525876 3.04 0.002 .0566922 .262832
                      _cons | -4.378866 1.211295 -3.62 0.000 -6.752961 -2.004771
                      ------------------------------------------------------------------------------

                      Attached Files
                      Last edited by Joseph Coveney; 12 Jul 2016, 18:50.

                      Comment

                      Working...
                      X