Stata Kernel DemoΒΆ

Publishing in a jupyter-book from an ipynb notebook with stata_kernel

sysuse auto
(1978 automobile data)
sum
    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
        make |          0
       price |         74    6165.257    2949.496       3291      15906
         mpg |         74     21.2973    5.785503         12         41
       rep78 |         69    3.405797    .9899323          1          5
    headroom |         74    2.993243    .8459948        1.5          5
-------------+---------------------------------------------------------
       trunk |         74    13.75676    4.277404          5         23
      weight |         74    3019.459    777.1936       1760       4840
      length |         74    187.9324    22.26634        142        233
        turn |         74    39.64865    4.399354         31         51
displacement |         74    197.2973    91.83722         79        425
-------------+---------------------------------------------------------
  gear_ratio |         74    3.014865    .4562871       2.19       3.89
     foreign |         74    .2972973    .4601885          0          1
bstrap: reg price mpg trunk
(running regress on estimation sample)
Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
Linear regression                                    Number of obs =        74
                                                     Replications  =        50
                                                     Wald chi2(2)  =     20.14
                                                     Prob > chi2   =    0.0000
                                                     R-squared     =    0.2222
                                                     Adj R-squared =    0.2003
                                                     Root MSE      = 2637.5910
------------------------------------------------------------------------------
             |   Observed   Bootstrap                         Normal-based
       price | coefficient  std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
         mpg |  -220.1649    77.9294    -2.83   0.005    -372.9037   -67.42607
       trunk |   43.55851   80.76242     0.54   0.590    -114.7329    201.8499
       _cons |   10254.95   2692.185     3.81   0.000     4978.363    15531.54
------------------------------------------------------------------------------