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" <[email protected]>
To   <[email protected]>
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 
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index