Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Some kind of count or tabulation?


From   smerryman@kc.rr.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Some kind of count or tabulation?
Date   Thu, 05 Jan 2006 14:33:03 -0600

-egen all_var = rmiss(Var*)- 

-count if all_var == 0 -


Scott


----- Original Message -----
From: "b. water" <barleywater@hotmail.com>
Date: Thursday, January 5, 2006 2:09 pm
Subject: st: Some kind of count or tabulation?

> Dear all,
> 
> Stata 8.2 Windows XP Pro SP2
> 
> My data set looks like this:
> 
> obs	Var1	Var2	Var3	Var(nth)
> 1	jacn	clstr	lnreg	pval
> 2	bstr	.	lgreg	nopval
> 3	.	rct	.	nopval
> 4	jacn	clstr	anova	.
> 
> What I want to do firstly is to count frequencies of features in 
> each 
> variable, which I did with tab1 varlists. Then what I want to find 
> out is 
> simply how many observations contained all the variables, e.g. in 
> this 
> example, only 1 observation i.e. the first (observation 1) 
> contained all the 
> variables. I think it has something to do with tabulate but just 
> couldn't 
> get the syntax for this. Any help/advise is appreciated.
> 
> Regards,
> bw
> 
*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index