From | John Antonakis <John.Antonakis@unil.ch> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Identify Categorical/Dichotomous and Continuous Variables |
Date | Sun, 05 Oct 2008 18:18:01 +0200 |
Frank wrote:
I am new to Stata: moved from SPSS a week ago. I am hoping that someone can help me with what I imagine is a simple issue. I saved an SPSS file as a Stata one. I am working my way through the user guide and the data management manual, but I am having difficulty with confirming whether Stata recognizes variables as continuous (or scale) or categorical/dichotomous (or nominal). In SPSS, you can easily identify whether the type of measure is a scale, nominal, or string with its drop down menu in the variable view. It would be a great help, and I would appreciate it very much if someone would tell me the method to confirm the data type for categorical/dichotomous and for continuous variables? Thank you.
======================================================
As Martin responded: Stata has no formal distinction between
continuous and categorical numeric variables. However, the
command
codebook, compact
may tell you what you want. The -Unique- column tells you
how many "unique" (meaning different) values each variable has.
Hope this helps
Svend
________________________________________________________ Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 DK-8000 Aarhus C, Denmark Phone, work: +45 8942 6090 Phone, home: +45 8693 7796 Fax: +45 8613 1580 E-mail: sj@soci.au.dk _________________________________________________________
*
* 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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |