Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Like %GL(r,n) in GLIM


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Like %GL(r,n) in GLIM
Date   Tue, 27 Feb 2007 18:20:58 -0000

-egen, seq()- is more versatile for this purpose
than -egen, fill()- as it allows -by()-. 

Nick 
n.j.cox@durham.ac.uk 

SamL
 
> You can use the fill function in -egen-.  So, say you have a 
> 4*4 table of
> counts.
> 
> egen col=fill(1 2 3 4 1 2 3 4)
> 
> will make the columns, and
> 
> egen row=fill(1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4)
> 
> would make the rows.  I've never used -seq- so it may be better.
> 

*
*   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/



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