<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-15088145</id><updated>2020-02-28T14:42:17.902-05:00</updated><title type='text'>Statalist</title><subtitle type='html'>RSS syndicated content from Statalist, a discussion listserv generated by users of StataCorp Stata statistical analysis software.  Subscribe to the RSS feed using the links provided in the sidebar.  You must join the listserv in order to respond to, or add, new posts.  For more information on Statalist, click on the &#39;Statalist FAQ&#39; link in the sidebar.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://statalist.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default?alt=atom&amp;start-index=26&amp;max-results=25'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6798</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-15088145.post-114736540352947923</id><published>2006-05-11T12:36:00.000-04:00</published><updated>2006-05-11T12:36:43.600-04:00</updated><title type='text'>test post</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Testing&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114736540352947923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114736540352947923'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/05/test-post.html' title='test post'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114307824859994832</id><published>2006-03-22T20:44:00.000-05:00</published><updated>2006-03-22T20:44:08.710-05:00</updated><title type='text'>Re: st: RE: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;&amp;gt;Personally if you want to be able to revert to older versions of files
&amp;gt;I&#39;d recommend simply creating a copy before doing major revisions and
&amp;gt;simply append a date in numeric format at some point to the filename
&amp;gt;(before &#39;.&#39; would be most appropriate).&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Thank you Neil. Are there resources for systematic and efficient &quot;best 
practices&quot; in do-file colding, that beginning Stata users can emulate and 
integrate into their own work?
Michael&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307824859994832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307824859994832'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-re-re-re-list-subjec_114307824859994832.html' title='Re: st: RE: RE: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114307818253558091</id><published>2006-03-22T20:43:00.000-05:00</published><updated>2006-03-22T20:43:02.650-05:00</updated><title type='text'>st: simultaneous equation with qualitative variables</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;how can i use stata to estimate  simultaneous equations with qualitative variables as follows:
y1=a1+b1y2+c1x1+e1
y2=a2+b2y1+c2x2+e2
y1*=1 if y1&amp;gt;0
y1*=0 if y1&amp;lt;=0
y2*=1 if y2&amp;gt;0
y2*=0 if y2&amp;lt;=0&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307818253558091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307818253558091'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-simultaneous-equation-with.html' title='st: simultaneous equation with qualitative variables'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114307702685109277</id><published>2006-03-22T20:23:00.000-05:00</published><updated>2006-03-22T20:23:46.956-05:00</updated><title type='text'>RE: st: RE: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;MS-Word I understand to be a word processor. Recall
that many members of Statalist do not use and certainly
are not expert in Windows or Microsoft products generally. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;In Vim, the way that seems to be most natural 
is a Unix way. You can have two files open in two 
windows and set it so that differences are highlighted. 
So, one could be a previous version and the other a working 
version. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I gather that Word behaves differently. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;In general, good text editors will have something loosely
similar. None that I know of regards it as a virtue to 
emulate Word. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Michael McCulloch
 
&amp;gt; Sorry; I was referring to changes in coding that one writes 
&amp;gt; in a do-file.
 
&amp;gt; &amp;gt;Changes to what?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;&amp;gt; &amp;gt; &amp;gt; Jennifer response brings to mind a question that recently
&amp;gt; &amp;gt; &amp;gt; occurred to me:
&amp;gt; &amp;gt; &amp;gt; Is there a Stata-compatible text editor that, like MS-WORD,
&amp;gt; &amp;gt; &amp;gt; can highlight changes?
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;Whoops, of course you&#39;re right. When I play with things to
&amp;gt; &amp;gt; &amp;gt; work out code
&amp;gt; &amp;gt; &amp;gt; &amp;gt;I usually don&#39;t keep the changes, so I mangle working datasets
&amp;gt; &amp;gt; &amp;gt; &amp;gt;willy-nilly and didn&#39;t think to change the conditioned keep to a
&amp;gt; &amp;gt; &amp;gt; &amp;gt;conditioned list.
&amp;gt; &amp;gt; &amp;gt; &amp;gt;The use of bysorting and _N is much neater and more flexible.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307702685109277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307702685109277'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-re-re-re-list-subjec_114307702685109277.html' title='RE: st: RE: RE: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114307657687675970</id><published>2006-03-22T20:16:00.000-05:00</published><updated>2006-03-22T20:16:16.983-05:00</updated><title type='text'>Re: st: RE: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;On 3/23/06, Michael McCulloch &amp;lt;mm@pinest.org&amp;gt; wrote:
&amp;gt; Jennifer response brings to mind a question that recently occurred to me:
&amp;gt; Is there a Stata-compatible text editor that, like MS-WORD, can highlight
&amp;gt; changes?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Although I don&#39;t use it myself there are version control features in
Emacs.  These work with programming control systems such as CVS or
SVN, and I&#39;m not sure what your mileage would be writing do/ado files
under such schemas, but I suspect it is possible (don&#39;t quote me on
that though :).&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;This isn&#39;t exactly the same as M$-words document tracking (which
personally I find hideously hard to follow, particularly when there
are multiple authors making revisions, I&#39;ve seen some docs that end up
looking like the old TV-test screens :-), but it does allow you to
track the changes that you are making.  One of the main problems (as I
see it) is that to write do/ado-files you need a _text_ editor, and
word is not a text-editor, but a word-processor, so all the colour
changes that you see are essentially mark-ups of the original text,
and such mark-ups would render the Stata code uninterpretable.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;See http://www.gnu.org/software/emacs/manual/html_node/Version-Control.html
for more on Emacs&#39; VC system.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Personally if you want to be able to revert to older versions of files
I&#39;d recommend simply creating a copy before doing major revisions and
simply append a date in numeric format at some point to the filename
(before &#39;.&#39; would be most appropriate).&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;HTH&#39;s&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Neil
--
&quot;The best safety device in climbing is always situated between your
ears&quot; - Ross Weiter, Perth Rock Climbing Guide (2002)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Email - nshephard@gmail.com / neilshep@cyllene.uwa.edu.au
Website - http://slack.ser.man.ac.uk/
Blog - http://slack---line.blogspot.com/
Flickr - http://www.flickr.com/photos/slackline/&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307657687675970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307657687675970'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-re-re-re-list-subjec_114307657687675970.html' title='Re: st: RE: RE: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114307594339484716</id><published>2006-03-22T20:05:00.000-05:00</published><updated>2006-03-22T20:05:43.503-05:00</updated><title type='text'>RE: st: RE: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Sorry; I was referring to changes in coding that one writes in a do-file.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;At 04:47 PM 3/22/2006, you wrote:
&amp;gt;Changes to what?
&amp;gt;
&amp;gt;Nick
&amp;gt;n.j.cox@durham.ac.uk
&amp;gt;
&amp;gt;Michael McCulloch
&amp;gt;
&amp;gt; &amp;gt; Jennifer response brings to mind a question that recently
&amp;gt; &amp;gt; occurred to me:
&amp;gt; &amp;gt; Is there a Stata-compatible text editor that, like MS-WORD,
&amp;gt; &amp;gt; can highlight changes?
&amp;gt;
&amp;gt; &amp;gt; &amp;gt;Whoops, of course you&#39;re right. When I play with things to
&amp;gt; &amp;gt; work out code
&amp;gt; &amp;gt; &amp;gt;I usually don&#39;t keep the changes, so I mangle working datasets
&amp;gt; &amp;gt; &amp;gt;willy-nilly and didn&#39;t think to change the conditioned keep to a
&amp;gt; &amp;gt; &amp;gt;conditioned list.
&amp;gt; &amp;gt; &amp;gt;The use of bysorting and _N is much neater and more flexible.
&amp;gt;
&amp;gt;*
&amp;gt;*   For searches and help try:
&amp;gt;*   http://www.stata.com/support/faqs/res/findit.html
&amp;gt;*   http://www.stata.com/support/statalist/faq
&amp;gt;*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Best wishes,
Michael&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;____________________________________&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Michael McCulloch
Pine Street Clinic
124 Pine Street, San Anselmo, CA 94960-2674
tel     415.407.1357
fax     415.485.1065
email:  mm@pinest.org
web:    www.pinest.org
         www.pinestreetfoundation.org&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307594339484716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307594339484716'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-re-re-re-list-subjects-with_22.html' title='RE: st: RE: RE: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114307498609466726</id><published>2006-03-22T19:49:00.000-05:00</published><updated>2006-03-22T19:49:47.290-05:00</updated><title type='text'>RE: st: RE: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Changes to what? &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Michael McCulloch
 
&amp;gt; Jennifer response brings to mind a question that recently 
&amp;gt; occurred to me:
&amp;gt; Is there a Stata-compatible text editor that, like MS-WORD, 
&amp;gt; can highlight changes?
 
&amp;gt; &amp;gt;Whoops, of course you&#39;re right. When I play with things to 
&amp;gt; work out code
&amp;gt; &amp;gt;I usually don&#39;t keep the changes, so I mangle working datasets
&amp;gt; &amp;gt;willy-nilly and didn&#39;t think to change the conditioned keep to a
&amp;gt; &amp;gt;conditioned list.
&amp;gt; &amp;gt;The use of bysorting and _N is much neater and more flexible.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307498609466726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114307498609466726'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-re-re-re-list-subjects-with.html' title='RE: st: RE: RE: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306910109994810</id><published>2006-03-22T18:11:00.000-05:00</published><updated>2006-03-22T18:11:41.103-05:00</updated><title type='text'>st: RE: RE: RE: Macro display format</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;It&#39;s a good question. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I guess: 
 
	-scatter- calls -graph- calls ... something that 
	clears your r-class results. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;	-graph- needs all sorts of little calculations to work 
	out what to show. It tends to do this on the fly, but 
	either way, you can lose your r-class results. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Whatever it is, it is quite deep down. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Alex Ogan&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;&amp;gt; Sorry if this is a silly question.  
&amp;gt; 
&amp;gt; I did the following sequence of commands.  I closed the 
&amp;gt; scatter as soon
&amp;gt; as it opened.  No other commands.  
&amp;gt; 
&amp;gt; Why does r(mean) go away after you use it in the scatter with the
&amp;gt; formatting extended function?
&amp;gt; 
&amp;gt; . sysuse auto, clear
&amp;gt; (1978 Automobile Data)
&amp;gt; 
&amp;gt; . quietly summ length
&amp;gt; 
&amp;gt; . di `r(mean)&#39;
&amp;gt; 187.93243
&amp;gt; 
&amp;gt; .  di `: di %9.1f `r(mean)&#39;&#39;
&amp;gt; 187.9
&amp;gt; 
&amp;gt; .  di `: di %9.1f `r(mean)&#39;&#39;
&amp;gt; 187.9
&amp;gt; 
&amp;gt; . twoway scatter length mpg, text(200 35 &quot;The mean of length is:`: di
&amp;gt; %2.1f `r(mean)&#39;&#39;&quot;)
&amp;gt; 
&amp;gt; .  di `: di %9.1f `r(mean)&#39;&#39;
&amp;gt; 
&amp;gt; 
&amp;gt; . di `r(mean)&#39;
&amp;gt; 
&amp;gt; 
&amp;gt; .
&amp;gt; &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306910109994810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306910109994810'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-re-re-re-macro-display-format.html' title='st: RE: RE: RE: Macro display format'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306868054889387</id><published>2006-03-22T18:04:00.000-05:00</published><updated>2006-03-22T18:04:40.640-05:00</updated><title type='text'>st: &quot;sureg&quot; with long-format data</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Hello all,&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I have searched the web and available Stata faqs and helpfiles for an
answer to an
sureg question and am unable to find one on my own. Much obliged if
anyone can help me through this particular puzzle.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I have a dataset oriented lengthwise where observations are grouped by
country and year. I would like to run sureg using this vertical
orientation. For example, in the sureg syntax, I would like to write
&quot;sureg (yvar xvar)&quot; as equation 1 representing the first 35
observations, followed by &quot;(yvar xvar)&quot; as equation 2 representing the
next 35 observations, and so on. My difficulty is that without
re-orienting the data width-wise (which creates a cumbersome heap of
newly-named X and Y variables and stops me from being able to tweak the
regressions around the edges) I have no way to distinguish for Stata
that instead of each equation having different Y and X variable names,
each equation has the same variable names but should contain a different
set of 35
observations. My abbreviated dataset looks like:&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Country                   Year   Yvar    Xvar
Australia                 2004   .5      14      
Australia                 2003   .6      17
....                        ..
Australia                 1970   .2      10&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Austria                   2004   .9      35
Austria                   2003   .8      14
....                        ..
Austria                   1970   .15     14&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Belgium                   2004   .13     7
....
(and so on for approximately 100 countries)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Ideally, the sureg command would allow something like &quot;by country: sureg
(Yvar Xvar)&quot; but instead, I have to reorient the data widthwise and
write &quot;sureg (YvarAustralia XvarAustralia) (YvarAustria XvarAustria)...&quot;
for about one-hundred different equations (and change all 100 when I
make adjustments). Requiring this horizontal orientation to make sureg
work seems remarkably inefficient in the command line, but I can&#39;t seem
to find another way around it. Many thanks for any and all ideas.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Cheers,
Eric&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Eric K. Bielke
Regulatory Economics Advisor
www.telecom.co.nz
Level 2, Telecom House, 68-86 Jervois Quay,
P O Box 570, Wellington, New Zealand&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;This communication, including any attachments, is confidential. If you are not the intended recipient, you should not read it - please contact me immediately, destroy it, and do not copy or use any part of this communication or disclose anything about it. Thank you. Please note that this communication does not designate an information system for the purposes of the Electronic Transactions Act 2002.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306868054889387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306868054889387'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-sureg-with-long-format-data.html' title='st: &quot;sureg&quot; with long-format data'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306835943567580</id><published>2006-03-22T17:59:00.000-05:00</published><updated>2006-03-22T17:59:19.560-05:00</updated><title type='text'>st: RE: RE: Macro display format</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Sorry if this is a silly question.  &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I did the following sequence of commands.  I closed the scatter as soon
as it opened.  No other commands.  &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Why does r(mean) go away after you use it in the scatter with the
formatting extended function?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. sysuse auto, clear
(1978 Automobile Data)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. quietly summ length&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. di `r(mean)&#39;
187.93243&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;.  di `: di %9.1f `r(mean)&#39;&#39;
187.9&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;.  di `: di %9.1f `r(mean)&#39;&#39;
187.9&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. twoway scatter length mpg, text(200 35 &quot;The mean of length is:`: di
%2.1f `r(mean)&#39;&#39;&quot;)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;.  di `: di %9.1f `r(mean)&#39;&#39;&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. di `r(mean)&#39;&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Wednesday, March 22, 2006 5:51 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Macro display format&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;No. You should try &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;` : di %9.1f `r(mean)&#39;&#39; &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;See help extended_fcn. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Tip: I would go `: di %2.1f `r(mean)&#39;&#39; even 
if you are sure that format is too restrictive. 
You&#39;re likely to be wrong, as Stata will stretch the space to 
avoid damage. However, with %9.1f you are likely to get the ugly 
spaces that are a consequence of what you asked
for. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Thomas Speidel
 
&amp;gt; I am trying to include the content of a macro within a graph, but I&#39;m
&amp;gt; having problems with the display format.  
&amp;gt; 
&amp;gt; For example:
&amp;gt; 
&amp;gt; sysuse auto, clear
&amp;gt; qui: summ length
&amp;gt; twoway scatter length mpg, text(200 35 &quot;The mean of length is:
&amp;gt; `r(mean)&#39;&quot;)
&amp;gt; 
&amp;gt; How do I change the format of the macro to display something 
&amp;gt; like %9.2f?
&amp;gt; 
&amp;gt; I tried:
&amp;gt; ... , text(200 35 &quot;The mean of length is: `%9.1f `r(mean)&#39;&#39;&quot;)
&amp;gt; 
&amp;gt; Am I missing some triple compound quote? :-)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;This message is intended solely for the designated recipient(s). It may contain confidential or proprietary information and may be subject to confidentiality protections. If you are not a designated recipient, you may not review, copy, or distribute this message. If you receive this in error, please notify the sender by reply e-mail and delete this message. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Arrowstreet Capital, L.P. is an Equal Opportunity Employer. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306835943567580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306835943567580'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-re-re-macro-display-format.html' title='st: RE: RE: Macro display format'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306794758145144</id><published>2006-03-22T17:52:00.000-05:00</published><updated>2006-03-22T17:52:27.686-05:00</updated><title type='text'>st: RE: Macro display format</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;No. You should try &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;` : di %9.1f `r(mean)&#39;&#39; &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;See help extended_fcn. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Tip: I would go `: di %2.1f `r(mean)&#39;&#39; even 
if you are sure that format is too restrictive. 
You&#39;re likely to be wrong, as Stata will stretch the space to 
avoid damage. However, with %9.1f you are likely to get the ugly 
spaces that are a consequence of what you asked
for. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Thomas Speidel
 
&amp;gt; I am trying to include the content of a macro within a graph, but I&#39;m
&amp;gt; having problems with the display format.  
&amp;gt; 
&amp;gt; For example:
&amp;gt; 
&amp;gt; sysuse auto, clear
&amp;gt; qui: summ length
&amp;gt; twoway scatter length mpg, text(200 35 &quot;The mean of length is:
&amp;gt; `r(mean)&#39;&quot;)
&amp;gt; 
&amp;gt; How do I change the format of the macro to display something 
&amp;gt; like %9.2f?
&amp;gt; 
&amp;gt; I tried:
&amp;gt; ... , text(200 35 &quot;The mean of length is: `%9.1f `r(mean)&#39;&#39;&quot;)
&amp;gt; 
&amp;gt; Am I missing some triple compound quote? :-)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306794758145144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306794758145144'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-re-macro-display-format.html' title='st: RE: Macro display format'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306771494352633</id><published>2006-03-22T17:48:00.000-05:00</published><updated>2006-03-22T17:48:34.946-05:00</updated><title type='text'>st: RE: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Whoops, of course you&#39;re right. When I play with things to work out code
I usually don&#39;t keep the changes, so I mangle working datasets
willy-nilly and didn&#39;t think to change the conditioned keep to a
conditioned list.  
The use of bysorting and _N is much neater and more flexible. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;N.J.Cox wrote:
&amp;gt;Whoa! The question was just about _listing_. 
&amp;gt;You just changed Raoul&#39;s dataset by throwing 
&amp;gt;much of it away. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306771494352633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306771494352633'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-re-re-re-list-subjects-with-similar.html' title='st: RE: RE: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306742273101766</id><published>2006-03-22T17:43:00.000-05:00</published><updated>2006-03-22T17:43:42.830-05:00</updated><title type='text'>st: Macro display format</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;I am trying to include the content of a macro within a graph, but I&#39;m
having problems with the display format.  &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;For example:&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;sysuse auto, clear
qui: summ length
twoway scatter length mpg, text(200 35 &quot;The mean of length is:
`r(mean)&#39;&quot;)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;How do I change the format of the macro to display something like %9.2f?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I tried:
... , text(200 35 &quot;The mean of length is: `%9.1f `r(mean)&#39;&#39;&quot;)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Am I missing some triple compound quote? :-)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Thanks,
Thomas&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;--
Thomas Speidel
Statistical Associate
Clinical Trials Unit
Tom Baker Cancer Centre
1331 - 29th Street N.W.
Calgary, AB, T2N 4N4&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Tel. (403) 521-3370
Email: thomassp@cancerboard.ab.ca&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306742273101766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306742273101766'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-macro-display-format.html' title='st: Macro display format'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306710875303074</id><published>2006-03-22T17:38:00.000-05:00</published><updated>2006-03-22T17:38:28.936-05:00</updated><title type='text'>RE: st: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;You are avoiding the command -duplicates-
and doing it from first principles. That 
is a very good idea. -duplicates- is 
just a wrapper for stuff like this. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;But the three steps here can be cut to two. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;bysort date_of_birth : gen dob_duplicate = _N 
list id date_of_birth if dob_duplicate &amp;gt;= 2 &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;clinton.thompson@summitllc.us
 
&amp;gt; there may be a more elegant way to do this, albeit this is 
&amp;gt; but one attempt:
&amp;gt; 
&amp;gt;     * obtain the number of duplicates w/in date of birth
&amp;gt; bysort date_of_birth:  gen dob_duplicate = _N
&amp;gt;     * tag each combination of DOB &amp;amp; the duplicates therein
&amp;gt; egen dob_tag = tag(date_of_birth dob_duplicate)
&amp;gt;      * list the ID &amp;amp; DOB associated w/ each repeated DOB...
&amp;gt; list id date_of_birth dob_tag if dob_tag
 
&amp;gt; &amp;gt; I have a large database and would like to list the idnumber of all
&amp;gt; &amp;gt; subjects with the same date of birth. How do I do this? I have tried
&amp;gt; &amp;gt; .duplicate, but can figure out how to do it. Thanks.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306710875303074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306710875303074'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-list-subjects-with-similar-value_22.html' title='RE: st: list subjects with a similar value'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306691145332027</id><published>2006-03-22T17:35:00.000-05:00</published><updated>2006-03-22T17:35:11.456-05:00</updated><title type='text'>st: RE: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Whoa! The question was just about _listing_. 
You just changed Raoul&#39;s dataset by throwing 
much of it away. &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;duplicates tag dateofbirth, gen(tag)
sort dateofbirth
list id dateofbirth if tag &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Nick 
n.j.cox@durham.ac.uk &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Marino, Jennifer
 
&amp;gt; Maybe try something along these lines:
&amp;gt; 
&amp;gt; duplicates tag dateofbirth, gen(tag)
&amp;gt; drop if tag==0
&amp;gt; sort dateofbirth
&amp;gt; by dateofbirth: list id&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Raoul C Reulen
  
&amp;gt; I have a large database and would like to list the idnumber of all
&amp;gt; subjects with the same date of birth. How do I do this? I have tried
&amp;gt; .duplicate, but can figure out how to do it. Thanks.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306691145332027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306691145332027'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-re-re-list-subjects-with-similar.html' title='st: RE: RE: list subjects with a similar value'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306665394911081</id><published>2006-03-22T17:30:00.000-05:00</published><updated>2006-03-22T17:30:54.090-05:00</updated><title type='text'>Re: st: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;there may be a more elegant way to do this, albeit this is but one attempt:&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;    * obtain the number of duplicates w/in date of birth
bysort date_of_birth:  gen dob_duplicate = _N
    * tag each combination of DOB &amp;amp; the duplicates therein
egen dob_tag = tag(date_of_birth dob_duplicate)
     * list the ID &amp;amp; DOB associated w/ each repeated DOB...
list id date_of_birth dob_tag if dob_tag&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;note that i didn&#39;t subject this to a rigorous test...but i think it works,
nonetheless.
--clint&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;&amp;gt; Hi,
&amp;gt;
&amp;gt; I have a large database and would like to list the idnumber of all
&amp;gt; subjects with the same date of birth. How do I do this? I have tried
&amp;gt; .duplicate, but can figure out how to do it. Thanks.
&amp;gt;
&amp;gt; Raoul
&amp;gt;
&amp;gt; *
&amp;gt; *   For searches and help try:
&amp;gt; *   http://www.stata.com/support/faqs/res/findit.html
&amp;gt; *   http://www.stata.com/support/statalist/faq
&amp;gt; *   http://www.ats.ucla.edu/stat/stata/
&amp;gt;&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306665394911081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306665394911081'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-list-subjects-with-similar-value.html' title='Re: st: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306635609788494</id><published>2006-03-22T17:25:00.000-05:00</published><updated>2006-03-22T17:25:56.213-05:00</updated><title type='text'>st: RE: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Maybe try something along these lines:&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;duplicates tag dateofbirth, gen(tag)
drop if tag==0
sort dateofbirth
by dateofbirth: list id&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Jen Marino&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Raoul C
Reulen
Sent: Wednesday, March 22, 2006 2:14 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: list subjects with a similar value&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Hi,
 
I have a large database and would like to list the idnumber of all
subjects with the same date of birth. How do I do this? I have tried
.duplicate, but can figure out how to do it. Thanks.
 
Raoul &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306635609788494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306635609788494'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-re-list-subjects-with-similar-value.html' title='st: RE: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114306573887562444</id><published>2006-03-22T17:15:00.000-05:00</published><updated>2006-03-22T17:15:40.350-05:00</updated><title type='text'>st: list subjects with a similar value</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Hi,
 
I have a large database and would like to list the idnumber of all subjects with the same date of birth. How do I do this? I have tried .duplicate, but can figure out how to do it. Thanks.
 
Raoul &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306573887562444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114306573887562444'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-list-subjects-with-similar-value.html' title='st: list subjects with a similar value'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305771480677052</id><published>2006-03-22T15:01:00.000-05:00</published><updated>2006-03-22T15:01:55.020-05:00</updated><title type='text'>Re: st: monte carlo study</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Rudy,&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;here is an example based on the help file for -simulate-&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;-------------------------
capture program drop mcarlols
program define mcarlols, rclass
syntax [, obs(integer 1)  ]
drop _all
set obs `obs&#39;
drawnorm eps x
g y=1+x+eps
reg y x
return scalar beta = _b[x]
end&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;simulate beta=r(beta) , reps(1000): mcarlols, obs(100)&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;su beta, de
kdensity beta, norm
--------------------------------&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;le 22/03/2006 20:10, Rudy Fichtenbaum a ecrit :
&amp;gt; Stata Users:
&amp;gt;
&amp;gt; I am still learning my way around Stata after many years of using SAS.
&amp;gt; In SAS it is fairly easy to write a program to do a simple Monte Carlo
&amp;gt; study to illustrate the properties of least squares estimators.
&amp;gt;
&amp;gt; Is there anyone that has a simple example of a Monte Carlo Study for OLS?
&amp;gt;
&amp;gt; Thanks,
&amp;gt;
&amp;gt; Rudy
&amp;gt; *
&amp;gt; *   For searches and help try:
&amp;gt; *   http://www.stata.com/support/faqs/res/findit.html
&amp;gt; *   http://www.stata.com/support/statalist/faq
&amp;gt; *   http://www.ats.ucla.edu/stat/stata/
&amp;gt;&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305771480677052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305771480677052'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-monte-carlo-study_22.html' title='Re: st: monte carlo study'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305728589321247</id><published>2006-03-22T14:54:00.000-05:00</published><updated>2006-03-22T14:54:53.286-05:00</updated><title type='text'>Re: st: monte carlo study</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;In the unlikely event that you have not, do check out -findit monte carlo-. The example in STB reprints Vol 4, pg 207 
may be helpful&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;TITLE
       STB-20 ssi6.  Simplified Monte Carlo simulations.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Rudy Fichtenbaum wrote:
&amp;gt; Stata Users:
&amp;gt; 
&amp;gt; I am still learning my way around Stata after many years of using SAS. 
&amp;gt; In SAS it is fairly easy to write a program to do a simple Monte Carlo 
&amp;gt; study to illustrate the properties of least squares estimators.
&amp;gt; 
&amp;gt; Is there anyone that has a simple example of a Monte Carlo Study for OLS?
&amp;gt; 
&amp;gt; Thanks,
&amp;gt; 
&amp;gt; Rudy
&amp;gt; *
&amp;gt; *   For searches and help try:
&amp;gt; *   http://www.stata.com/support/faqs/res/findit.html
&amp;gt; *   http://www.stata.com/support/statalist/faq
&amp;gt; *   http://www.ats.ucla.edu/stat/stata/
&amp;gt; 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305728589321247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305728589321247'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-monte-carlo-study.html' title='Re: st: monte carlo study'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305496477945957</id><published>2006-03-22T14:16:00.000-05:00</published><updated>2006-03-22T14:16:04.783-05:00</updated><title type='text'>st: Chou-Talalay method</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Dear all,&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Does anyone have or know of a Stata program to compute
the various Chou-Talalay statistics of dose-effect
relationship?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Thank you,
Ricardo
  &lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305496477945957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305496477945957'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-chou-talalay-method.html' title='st: Chou-Talalay method'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305471761852258</id><published>2006-03-22T14:11:00.000-05:00</published><updated>2006-03-22T14:12:00.976-05:00</updated><title type='text'>st: monte carlo study</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Stata Users:&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;I am still learning my way around Stata after many years of using SAS. 
In SAS it is fairly easy to write a program to do a simple Monte Carlo 
study to illustrate the properties of least squares estimators.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Is there anyone that has a simple example of a Monte Carlo Study for OLS?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Thanks,&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Rudy
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305471761852258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305471761852258'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/st-monte-carlo-study.html' title='st: monte carlo study'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305389131537738</id><published>2006-03-22T13:58:00.000-05:00</published><updated>2006-03-22T13:58:11.450-05:00</updated><title type='text'>RE: st: functions for computing prob</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Thanks a lot, Gary!&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Lei&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Gary Longton
Sent: Wednesday, March 22, 2006 12:47 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: functions for computing prob&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;It appears that I was mistaken about -tprob()-, that it does exist and
appear to 
work, though undocumented and apparently obsolete.  It looks to be the
2-tailed 
version of -ttail()-&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. di tprob(30,1.8)
.08192507&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. di ttail(30,1.8)
.04096253&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;- GL&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Gary Longton wrote:
&amp;gt; Lei Xuan wrote:
&amp;gt; 
&amp;gt;&amp;gt; I am computing probabilities for t-test and z-test.
&amp;gt;&amp;gt; I want to know if the functions -tprob- and -normprob- are out-of-date
&amp;gt;&amp;gt; since no help files explain these functions. Are -ttail(n,t)- and 
&amp;gt;&amp;gt; -normal(z)
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; right functions to compute probs?
&amp;gt; 
&amp;gt; 
&amp;gt; see -help density functions-
&amp;gt; or -help functions-
&amp;gt; 
&amp;gt; Yes, the cumulative normal density function, normprob(), still works but 
&amp;gt; is out of date, no longer documented, and has been replaced by 
&amp;gt; normal().  Am not sure whether tprob() ever existed? - doesn&#39;t seem to 
&amp;gt; work and is not documented in any case.  ttail(n,t) is documented under 
&amp;gt; help for functions.
&amp;gt; 
&amp;gt; - Gary
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305389131537738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305389131537738'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-functions-for-comput_114305389131537738.html' title='RE: st: functions for computing prob'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305332955373724</id><published>2006-03-22T13:48:00.000-05:00</published><updated>2006-03-22T13:48:50.190-05:00</updated><title type='text'>Re: st: functions for computing prob</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;It appears that I was mistaken about -tprob()-, that it does exist and appear to 
work, though undocumented and apparently obsolete.  It looks to be the 2-tailed 
version of -ttail()-&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. di tprob(30,1.8)
.08192507&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;. di ttail(30,1.8)
.04096253&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;- GL&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Gary Longton wrote:
&amp;gt; Lei Xuan wrote:
&amp;gt; 
&amp;gt;&amp;gt; I am computing probabilities for t-test and z-test.
&amp;gt;&amp;gt; I want to know if the functions -tprob- and -normprob- are out-of-date
&amp;gt;&amp;gt; since no help files explain these functions. Are -ttail(n,t)- and 
&amp;gt;&amp;gt; -normal(z)
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; right functions to compute probs?
&amp;gt; 
&amp;gt; 
&amp;gt; see -help density functions-
&amp;gt; or -help functions-
&amp;gt; 
&amp;gt; Yes, the cumulative normal density function, normprob(), still works but 
&amp;gt; is out of date, no longer documented, and has been replaced by 
&amp;gt; normal().  Am not sure whether tprob() ever existed? - doesn&#39;t seem to 
&amp;gt; work and is not documented in any case.  ttail(n,t) is documented under 
&amp;gt; help for functions.
&amp;gt; 
&amp;gt; - Gary
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305332955373724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305332955373724'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-functions-for-computing-prob_22.html' title='Re: st: functions for computing prob'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15088145.post-114305237616751129</id><published>2006-03-22T13:32:00.000-05:00</published><updated>2006-03-22T13:33:19.903-05:00</updated><title type='text'>Re: st: functions for computing prob</title><content type='html'>&lt;p class=&quot;mobile-post&quot;&gt;Lei Xuan wrote:&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;&amp;gt; I am computing probabilities for t-test and z-test.
&amp;gt; I want to know if the functions -tprob- and -normprob- are out-of-date
&amp;gt; since no help files explain these functions. Are -ttail(n,t)- and -normal(z)
&amp;gt; 
&amp;gt; right functions to compute probs?&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;see -help density functions-
or -help functions-&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;Yes, the cumulative normal density function, normprob(), still works but is out 
of date, no longer documented, and has been replaced by normal().  Am not sure 
whether tprob() ever existed? - doesn&#39;t seem to work and is not documented in 
any case.  ttail(n,t) is documented under help for functions.&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;- Gary&lt;/p&gt;&lt;p class=&quot;mobile-post&quot;&gt;*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305237616751129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15088145/posts/default/114305237616751129'/><link rel='alternate' type='text/html' href='http://statalist.blogspot.com/2006/03/re-st-functions-for-computing-prob.html' title='Re: st: functions for computing prob'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author></entry></feed>