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: Followup: inverting a stored table of regression results - then exporting to a cvs/excel file
From
Maarten buis <[email protected]>
To
[email protected]
Subject
Re: st: Followup: inverting a stored table of regression results - then exporting to a cvs/excel file
Date
Fri, 5 Nov 2010 17:38:30 +0000 (GMT)
--- On Fri, 5/11/10, Ben Hoen wrote:
> I want to create a local macro of the number of
> groups
*------ begin example --------
sysuse auto, clear
levelsof rep78
local levs `"`r(levels)'"'
local k : word count `levs'
di `"`levs'"'
di `k'
*----- end example -----------
For more see -help macro- and click on extended
macro functions.
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/