Skip to main content
Glama
jupyter.ipynb25.9 kB
{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "3daa4c95", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[0.005s][warning][os,thread] Attempt to protect stack guard pages failed (0x0000000169398000-0x00000001693a4000).\n", "[0.005s][warning][os,thread] Attempt to deallocate stack guard pages failed.\n", "\n", " ___ ____ ____ ____ ____ ©\n", " /__ / ____/ / ____/ 17.0\n", "___/ / /___/ / /___/ SE—Standard Edition\n", "\n", " Statistics and Data Science Copyright 1985-2021 StataCorp LLC\n", " StataCorp\n", " 4905 Lakeway Drive\n", " College Station, Texas 77845 USA\n", " 800-STATA-PC https://www.stata.com\n", " 979-696-4600 stata@stata.com\n", "\n", "Stata license: 100-student lab perpetual\n", "Serial number: 401706316154\n", " Licensed to: SepineTam\n", " Shanghai University\n", "\n", "Notes:\n", " 1. Unicode is supported; see help unicode_advice.\n", " 2. Maximum number of variables is set to 5,000; see help set_maxvar.\n" ] } ], "source": [ "import sys\n", "\n", "sys_platform = sys.platform\n", "if sys_platform == 'darwin':\n", " import os\n", " os.chdir('/Applications/Stata/utilities') \n", "\n", " from pystata import config\n", " config.init('se') # change it to your own version\n", "elif sys_platform == 'Windows':\n", " import stata_setup\n", " stata_setup.config(\"C:/Program Files/Stata17\", \"mp\") # change it to your own path and version" ] }, { "cell_type": "code", "execution_count": 2, "id": "c39ed0d0", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", ". ## multi line magic command\n", "Unknown #command\n", ". \n", ". sysuse auto, clear\n", "(1978 automobile data)\n", "\n", ". sum\n", "\n", " Variable | Obs Mean Std. dev. Min Max\n", "-------------+---------------------------------------------------------\n", " make | 0\n", " price | 74 6165.257 2949.496 3291 15906\n", " mpg | 74 21.2973 5.785503 12 41\n", " rep78 | 69 3.405797 .9899323 1 5\n", " headroom | 74 2.993243 .8459948 1.5 5\n", "-------------+---------------------------------------------------------\n", " trunk | 74 13.75676 4.277404 5 23\n", " weight | 74 3019.459 777.1936 1760 4840\n", " length | 74 187.9324 22.26634 142 233\n", " turn | 74 39.64865 4.399354 31 51\n", "displacement | 74 197.2973 91.83722 79 425\n", "-------------+---------------------------------------------------------\n", " gear_ratio | 74 3.014865 .4562871 2.19 3.89\n", " foreign | 74 .2972973 .4601885 0 1\n", "\n", ". reg price mpg rep78 trunk weight length\n", "\n", " Source | SS df MS Number of obs = 69\n", "-------------+---------------------------------- F(5, 63) = 9.99\n", " Model | 255071698 5 51014339.6 Prob > F = 0.0000\n", " Residual | 321725261 63 5106750.17 R-squared = 0.4422\n", "-------------+---------------------------------- Adj R-squared = 0.3980\n", " Total | 576796959 68 8482308.22 Root MSE = 2259.8\n", "\n", "------------------------------------------------------------------------------\n", " price | Coefficient Std. err. t P>|t| [95% conf. interval]\n", "-------------+----------------------------------------------------------------\n", " mpg | -106.6354 81.83692 -1.30 0.197 -270.1734 56.90263\n", " rep78 | 909.5224 310.5548 2.93 0.005 288.9282 1530.117\n", " trunk | 2.922378 94.43463 0.03 0.975 -185.7902 191.6349\n", " weight | 4.962699 1.13309 4.38 0.000 2.698398 7.226999\n", " length | -115.538 42.3502 -2.73 0.008 -200.1681 -30.9079\n", " _cons | 11985.54 6048.884 1.98 0.052 -102.194 24073.27\n", "------------------------------------------------------------------------------\n", "\n", ". \n" ] } ], "source": [ "%%stata \n", "## multi line magic command\n", "\n", "sysuse auto, clear\n", "sum\n", "reg price mpg rep78 trunk weight length" ] }, { "cell_type": "code", "execution_count": 3, "id": "d8876392", "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" width=\"528px\" height=\"384px\" viewBox=\"0 0 3960 2880\">\n", "\t<desc>Stata Graph - Graph</desc>\n", "\t<rect x=\"0\" y=\"0\" width=\"3960\" height=\"2880\" style=\"fill:#EAF2F3;stroke:none\"/>\n", "\t<rect x=\"0.00\" y=\"0.00\" width=\"3959.88\" height=\"2880.00\" style=\"fill:#EAF2F3\"/>\n", "\t<rect x=\"2.88\" y=\"2.88\" width=\"3954.12\" height=\"2874.24\" style=\"fill:none;stroke:#EAF2F3;stroke-width:5.76\"/>\n", "\t<rect x=\"390.80\" y=\"100.86\" width=\"3468.22\" height=\"2388.33\" style=\"fill:#FFFFFF\"/>\n", "\t<rect x=\"393.68\" y=\"103.74\" width=\"3462.46\" height=\"2382.57\" style=\"fill:none;stroke:#FFFFFF;stroke-width:5.76\"/>\n", "\t<line x1=\"390.80\" y1=\"2425.82\" x2=\"3859.02\" y2=\"2425.82\" style=\"stroke:#EAF2F3;stroke-width:8.64\"/>\n", "\t<line x1=\"390.80\" y1=\"1696.29\" x2=\"3859.02\" y2=\"1696.29\" style=\"stroke:#EAF2F3;stroke-width:8.64\"/>\n", "\t<line x1=\"390.80\" y1=\"966.64\" x2=\"3859.02\" y2=\"966.64\" style=\"stroke:#EAF2F3;stroke-width:8.64\"/>\n", "\t<line x1=\"390.80\" y1=\"237.11\" x2=\"3859.02\" y2=\"237.11\" style=\"stroke:#EAF2F3;stroke-width:8.64\"/>\n", "\t<circle cx=\"1315.21\" cy=\"1550.39\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1315.21\" cy=\"1550.39\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1451.71\" cy=\"1915.21\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1451.71\" cy=\"1915.21\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1252.23\" cy=\"1550.39\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1252.23\" cy=\"1550.39\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1465.82\" cy=\"1696.29\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1465.82\" cy=\"1696.29\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2098.43\" cy=\"2061.12\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2098.43\" cy=\"2061.12\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1670.01\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1670.01\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1389.59\" cy=\"1258.58\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1389.59\" cy=\"1258.58\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1544.15\" cy=\"1696.29\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1544.15\" cy=\"1696.29\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2633.03\" cy=\"1988.11\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2633.03\" cy=\"1988.11\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1311.63\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1311.63\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2845.88\" cy=\"2134.14\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2845.88\" cy=\"2134.14\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"3500.27\" cy=\"2134.14\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"3500.27\" cy=\"2134.14\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"3795.66\" cy=\"1623.40\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"3795.66\" cy=\"1623.40\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1147.16\" cy=\"1039.66\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1147.16\" cy=\"1039.66\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1652.56\" cy=\"1988.11\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1652.56\" cy=\"1988.11\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1400.23\" cy=\"1550.39\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1400.23\" cy=\"1550.39\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1526.33\" cy=\"1550.39\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1526.33\" cy=\"1550.39\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1224.51\" cy=\"1404.48\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1224.51\" cy=\"1404.48\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1284.90\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1284.90\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1291.08\" cy=\"966.77\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1291.08\" cy=\"966.77\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1296.53\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1296.53\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1690.67\" cy=\"1988.11\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1690.67\" cy=\"1988.11\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1786.45\" cy=\"1915.21\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1786.45\" cy=\"1915.21\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1376.10\" cy=\"1112.67\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1376.10\" cy=\"1112.67\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1333.65\" cy=\"1623.40\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1333.65\" cy=\"1623.40\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2869.39\" cy=\"2280.04\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2869.39\" cy=\"2280.04\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"3309.94\" cy=\"2280.04\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"3309.94\" cy=\"2280.04\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"3283.09\" cy=\"2134.14\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"3283.09\" cy=\"2134.14\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1258.54\" cy=\"1550.39\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1258.54\" cy=\"1550.39\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1584.12\" cy=\"2134.14\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1584.12\" cy=\"2134.14\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1749.21\" cy=\"2061.12\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1749.21\" cy=\"2061.12\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1402.83\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1402.83\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1778.29\" cy=\"2134.14\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1778.29\" cy=\"2134.14\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1145.43\" cy=\"1696.29\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1145.43\" cy=\"1696.29\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2305.71\" cy=\"1623.40\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2305.71\" cy=\"1623.40\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1540.69\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1540.69\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1448.37\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1448.37\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1481.41\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1481.41\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1332.42\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1332.42\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1335.39\" cy=\"1404.48\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1335.39\" cy=\"1404.48\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2632.91\" cy=\"1988.11\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2632.91\" cy=\"1988.11\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1430.30\" cy=\"1112.67\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1430.30\" cy=\"1112.67\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1383.65\" cy=\"674.95\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1383.65\" cy=\"674.95\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1395.65\" cy=\"1331.59\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1395.65\" cy=\"1331.59\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1816.65\" cy=\"1258.58\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1816.65\" cy=\"1258.58\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1307.05\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1307.05\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1672.11\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1672.11\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1490.57\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1490.57\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1551.08\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1551.08\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1446.27\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1446.27\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1383.53\" cy=\"1769.31\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1383.53\" cy=\"1769.31\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1330.56\" cy=\"1404.48\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1330.56\" cy=\"1404.48\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2489.73\" cy=\"1915.21\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2489.73\" cy=\"1915.21\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1776.56\" cy=\"1477.50\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1776.56\" cy=\"1477.50\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2499.26\" cy=\"1331.59\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2499.26\" cy=\"1331.59\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1762.69\" cy=\"1477.50\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1762.69\" cy=\"1477.50\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1418.17\" cy=\"601.94\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1418.17\" cy=\"601.94\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1521.13\" cy=\"1404.48\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1521.13\" cy=\"1404.48\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2161.79\" cy=\"1623.40\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2161.79\" cy=\"1623.40\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1356.55\" cy=\"1623.40\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1356.55\" cy=\"1623.40\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1672.36\" cy=\"1331.59\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1672.36\" cy=\"1331.59\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1399.24\" cy=\"1112.67\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1399.24\" cy=\"1112.67\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1293.31\" cy=\"966.77\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1293.31\" cy=\"966.77\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"3183.10\" cy=\"2134.14\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"3183.10\" cy=\"2134.14\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1272.40\" cy=\"1258.58\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1272.40\" cy=\"1258.58\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1251.98\" cy=\"601.94\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1251.98\" cy=\"601.94\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1693.39\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1693.39\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1241.46\" cy=\"893.75\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1241.46\" cy=\"893.75\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1655.53\" cy=\"1842.20\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1655.53\" cy=\"1842.20\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1954.01\" cy=\"1477.50\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1954.01\" cy=\"1477.50\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1587.84\" cy=\"164.22\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1587.84\" cy=\"164.22\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1440.82\" cy=\"1331.59\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1440.82\" cy=\"1331.59\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"1893.13\" cy=\"1331.59\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"1893.13\" cy=\"1331.59\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<circle cx=\"2974.08\" cy=\"1915.21\" r=\"26.35\" style=\"fill:#1A476F\"/>\n", "\t<circle cx=\"2974.08\" cy=\"1915.21\" r=\"22.03\" style=\"fill:none;stroke:#1A476F;stroke-width:8.64\"/>\n", "\t<line x1=\"390.80\" y1=\"2489.19\" x2=\"390.80\" y2=\"100.86\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<line x1=\"390.80\" y1=\"2425.82\" x2=\"350.83\" y2=\"2425.82\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"300.72\" y=\"2425.82\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" transform=\"rotate(-90 300.72,2425.82)\" text-anchor=\"middle\">10</text>\n", "\t<line x1=\"390.80\" y1=\"1696.29\" x2=\"350.83\" y2=\"1696.29\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"300.72\" y=\"1696.29\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" transform=\"rotate(-90 300.72,1696.29)\" text-anchor=\"middle\">20</text>\n", "\t<line x1=\"390.80\" y1=\"966.64\" x2=\"350.83\" y2=\"966.64\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"300.72\" y=\"966.64\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" transform=\"rotate(-90 300.72,966.64)\" text-anchor=\"middle\">30</text>\n", "\t<line x1=\"390.80\" y1=\"237.11\" x2=\"350.83\" y2=\"237.11\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"300.72\" y=\"237.11\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" transform=\"rotate(-90 300.72,237.11)\" text-anchor=\"middle\">40</text>\n", "\t<text x=\"190.71\" y=\"1294.96\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" transform=\"rotate(-90 190.71,1294.96)\" text-anchor=\"middle\">Mileage (mpg)</text>\n", "\t<line x1=\"390.80\" y1=\"2489.19\" x2=\"3859.02\" y2=\"2489.19\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<line x1=\"454.16\" y1=\"2489.19\" x2=\"454.16\" y2=\"2529.16\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"454.16\" y=\"2619.14\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" text-anchor=\"middle\">0</text>\n", "\t<line x1=\"1504.55\" y1=\"2489.19\" x2=\"1504.55\" y2=\"2529.16\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"1504.55\" y=\"2619.14\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" text-anchor=\"middle\">5,000</text>\n", "\t<line x1=\"2554.94\" y1=\"2489.19\" x2=\"2554.94\" y2=\"2529.16\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"2554.94\" y=\"2619.14\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" text-anchor=\"middle\">10,000</text>\n", "\t<line x1=\"3605.33\" y1=\"2489.19\" x2=\"3605.33\" y2=\"2529.16\" style=\"stroke:#000000;stroke-width:5.76\"/>\n", "\t<text x=\"3605.33\" y=\"2619.14\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" text-anchor=\"middle\">15,000</text>\n", "\t<text x=\"2124.91\" y=\"2729.16\" style=\"font-family:'Helvetica';font-size:99.99px;fill:#000000\" text-anchor=\"middle\">Price</text>\n", "</svg>" ], "text/plain": [ "<IPython.core.display.SVG object>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%stata scatter mpg price" ] }, { "cell_type": "code", "execution_count": null, "id": "365f32ce", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Stata", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.11" } }, "nbformat": 4, "nbformat_minor": 5 }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hanlulong/stata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server