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: [email protected]
_________________________________________________________
*
* 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/