Here is an example: graph twoway (scatter growth2010 growth2000) (function y x, range( growth2000)) This will draw a line at a 45 degree angle, i.e. Other lines may be drawn by overlaying the graph with a function. In this example, coefplot is used to plot coefficients in an event study, as an intro to a difference-and-difference model, but (a similar code) can be also used in many other contexts as well. xline(3) Again, several values may be enclosed within the parentheses, producing several lines. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.įor technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). COEFPLOT FebruThis post shows how to prepare a coefplot (coefficients plot) graph in STATA. ![]() If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. You can help adding them by using this form. We have no bibliographic references for this item. example xline (x,LineSpec) specifies the line style, the line color, or both. graph line y x, lcolor(red) causes the line through the (y, x) point to be drawn in red. For example, xline (2) creates a line at x2. Remarks and examples Lines occur in many contexts and, in some of those contexts, the above options are used to determine the look of the line. It also allows you to accept potential citations to this item that we are uncertain about. Description example xline (x) creates a vertical line at one or more x -coordinates in the current axes. ![]() This allows to link your profile to this item. If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. See general information about how to correct material in RePEc.įor technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact. When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s458598. 1 how to color two sets of 15 lines in twoway tsline, one set blue, one set red, 00:28 Dear Statalist, I have two sets of lines, each set containing 15 lines. In addition to Stata’s default colors, colorpalette supports a variety of named colors, a selection of palettes that have been proposed by users, numerous collections of palettes and colormaps from sources such as ColorBrewer, Carto, D3.js, or Matplotlib, as well as color generators in different color spaces. You can help correct errors and omissions. ![]() means that at least one of the CMY values is normalized to 0 for all CMYK colors. All material on this site has been provided by the respective publishers and authors. Stata Coefplot Event Study It runs whichever estimation command was.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |