Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: new package -cmogram- available from SSC


From   Christopher Robert <chris_robert@hksphd.harvard.edu>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: new package -cmogram- available from SSC
Date   Thu, 22 Jul 2010 05:35:15 -0400

Thanks to Kit Baum, -cmogram- is now available from SSC.

cmogram yvar xvar [if] [, options ]

cmogram graphs the means, medians, frequencies, or proportions of
yvar, conditional on xvar. By default, bins are defined along the x
axis as they are by histogram. Alternatively, histogram options can be
used to override the default bin definitions, as in histopts(bin(10)).
The exact bin definitions are always output along with the graph(s).

While the default output style is similar to a histogram, the scatter
option allows for scatterplot-style output. For regression
discontinuity and similar applications, cutpoint(#) can be used to
split graphs at a particular x value. To plot conditional means or
medians of residuals, controls(...) can be used; the plotted residuals
will be after a regression of the form regress yvar controls.

by(...) allows subgroups to be plotted separately.

To install, type -ssc install cmogram-.

Chris

---
Christopher Robert
Ph.D. Candidate in Public Policy
John F. Kennedy School of Government
Harvard University
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index