Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: variable format


From   Grace Jessie <[email protected]>
To   <[email protected]>
Subject   RE: st: variable format
Date   Fri, 18 Mar 2011 03:22:40 +0000

Nick,
I am learning Stata. The link you provided seems to solve the problem with only one constant to display as someone likes.
In the posting, Feiveson's graph is repeated by subgroups, which results different values in subgroups. How to invoke the macro  with by option (i.e., different subgroups) within the graph command?
 
What Feiveson takes for example is as follows.
 
set obs 4
gen u = uniform()
gen ru = round(u,.01)
expand 10
gen y = rnormal()
gen x = y+rnormal()
scatter y x,by(ru)
 
Thank you.
Grace 		 	   		  
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index