Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: AW: Check that recode work


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: AW: Check that recode work
Date   Tue, 10 Mar 2009 14:17:00 +0100

<> 

Correction, forgot the comma...


*************
by Z, sort: ta A B
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 10. März 2009 14:08
An: statalist@hsphsun2.harvard.edu
Betreff: st: AW: Check that recode work


<> 

****
by Z sort: ta A B
****

You may also like -egen, group()-
       
HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Tomas Lind
Gesendet: Dienstag, 10. März 2009 13:58
An: statalist@hsphsun2.harvard.edu
Betreff: st: Check that recode work

Dear listers,

I would like to see the value of Z for combinations of A and B  (or for
combinations of A, B and C). Missing should be regarded as a category.

I have a large dataset and I generate a new variable Z that depends on the
values of two other category variables A and B. Is there some easy way to
let Stata show me which combinations of A, B and Z that i have after
recoding so that I can see that the result is what I want, e.g.

A  B  Z
1  1   1
1  2   1
1  .    0
2  1   1
etc (other combinations of A and B)


/tomas

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


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


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



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