Announcement

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

  • scatter plot with line

    Dear All,

    Can you help me generate a scatter plot or a similar graph for the data below.

    Poor is the poverty rate, level (10% above the poverty line) and level_below (10% below the poverty line).

    Totpovline to be the poverty line and plot household above and below 10% of the poverty line using the pce_real data.



    copy starting from the next line ------- ----- ---------
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input double houseid float(pce_real level level_below totpovline    poor)
    11010101  4182.317 0 0 1096.9401 0
    11010102 1559.3533 0 0 1096.9401 0
    11010103  988.6982 0 1 1096.9401 1
    11010104 1094.1177 0 1 1096.9401 1
    11010105  1579.325 0 0 1096.9401 0
    11010106  1301.234 0 0 1096.9401 0
    11010107  1262.613 0 0 1096.9401 0
    11010108 1341.6733 0 0 1096.9401 0
    11010109 1582.0533 0 0 1096.9401 0
    11010110  1250.626 0 0 1096.9401 0
    11010201  2423.986 0 0 1096.9401 0
    11010202 1030.3899 0 1 1096.9401 1
    11010203 2495.9446 0 0 1096.9401 0
    11010204 1152.7609 1 0 1096.9401 0
    11010205 1572.9044 0 0 1096.9401 0
    11010206  764.0942 0 0 1096.9401 1
    11010207 1343.0367 0 0 1096.9401 0
    11010208 2193.5173 0 0 1096.9401 0
    11010209  3129.408 0 0 1096.9401 0
    11010210 2788.6526 0 0 1096.9401 0
    11010301 3611.0435 0 0 1096.9401 0
    11010302   3667.95 0 0 1096.9401 0
    11010303 2086.5024 0 0 1096.9401 0
    11010304 1041.9104 0 1 1096.9401 1
    11010305 2067.3752 0 0 1096.9401 0
    11010306  1493.925 0 0 1096.9401 0
    11010307 2376.8174 0 0 1096.9401 0
    11010308  8638.088 0 0 1096.9401 0
    11010309  1485.993 0 0 1096.9401 0
    11010310 1935.3503 0 0 1096.9401 0
    11010401 2444.2134 0 0 1096.9401 0
    11010402  2541.859 0 0 1096.9401 0
    11010403 2848.9846 0 0 1096.9401 0
    11010404  3843.138 0 0 1096.9401 0
    11010405 3256.3684 0 0 1096.9401 0
    11010406  5896.262 0 0 1096.9401 0
    11010407  2725.549 0 0 1096.9401 0
    11010408  9058.841 0 0 1096.9401 0
    11010409  2586.598 0 0 1096.9401 0
    11010410  2428.635 0 0 1096.9401 0
    11010411  2628.409 0 0 1096.9401 0
    11010412  3121.481 0 0 1096.9401 0
    11010413  1851.851 0 0 1096.9401 0
    11010414 3015.3594 0 0 1096.9401 0
    11010415 1871.5366 0 0 1096.9401 0
    11010416    3357.4 0 0 1096.9401 0
    11010417  1674.521 0 0 1096.9401 0
    11010418 4538.0337 0 0 1096.9401 0
    11010419 1760.8347 0 0 1096.9401 0
    11010420  9478.597 0 0 1096.9401 0
    11010501  949.3616 0 0 1096.9401 1
    11010502  5238.474 0 0 1096.9401 0
    11010503 2258.0605 0 0 1096.9401 0
    11010504  6325.622 0 0 1096.9401 0
    11010505 2170.4216 0 0 1096.9401 0
    11010506 1953.8524 0 0 1096.9401 0
    11010507 2947.3645 0 0 1096.9401 0
    11010508  2639.239 0 0 1096.9401 0
    11010509  949.3263 0 0 1096.9401 1
    11010510  6065.922 0 0 1096.9401 0
    11010601 4364.6353 0 0 1096.9401 0
    11010602  2358.245 0 0 1096.9401 0
    11010603 1153.5444 1 0 1096.9401 0
    11010604  3395.089 0 0 1096.9401 0
    11010605  2578.418 0 0 1096.9401 0
    11010606 3371.6096 0 0 1096.9401 0
    11010607  3213.971 0 0 1096.9401 0
    11010608  3572.305 0 0 1096.9401 0
    11010609  4918.716 0 0 1096.9401 0
    11010610  2595.655 0 0 1096.9401 0
    11020101 2416.5205 0 0 1096.9401 0
    11020102 1918.2378 0 0 1096.9401 0
    11020103 2367.3816 0 0 1096.9401 0
    11020104 1759.8982 0 0 1096.9401 0
    11020105  2943.494 0 0 1096.9401 0
    11020106  1858.647 0 0 1096.9401 0
    11020107 2067.9421 0 0 1096.9401 0
    11020108 1424.1907 0 0 1096.9401 0
    11020109 2078.2773 0 0 1096.9401 0
    11020110 1467.2714 0 0 1096.9401 0
    11020201  5237.197 0 0 1096.9401 0
    11020202  1318.877 0 0 1096.9401 0
    11020203  9091.573 0 0 1096.9401 0
    11020204 2244.7922 0 0 1096.9401 0
    11020205  12296.72 0 0 1096.9401 0
    11020206 1650.4236 0 0 1096.9401 0
    11020207 2899.5264 0 0 1096.9401 0
    11020208 4500.7417 0 0 1096.9401 0
    11020209 2745.7996 0 0 1096.9401 0
    11020210 1672.1553 0 0 1096.9401 0
    11020301   24677.6 0 0 1096.9401 0
    11020302 1665.9365 0 0 1096.9401 0
    11020303  3723.993 0 0 1096.9401 0
    11020304  2998.483 0 0 1096.9401 0
    11020305 3049.4395 0 0 1096.9401 0
    11020306  1856.912 0 0 1096.9401 0
    11020307  2722.057 0 0 1096.9401 0
    11020308 2620.9346 0 0 1096.9401 0
    11020309 1921.2998 0 0 1096.9401 0
    11020310 1417.8788 0 0 1096.9401 0
    end
    label values poor poorlab
    label def poorlab 0 "nonpoor", modify
    label def poorlab 1 "poor", modify
    copy up to and including the previous line -- ----- ---------

    Listed 100 out of 43766 observations

    .
Working...
X