[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Like %GL(r,n) in GLIM
-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/