I am new to Stata.
One of the packages I have prior experience with is SPSS.
In SPSS, one can define an Independent Variable as Scale, or Ordinal, or Nominal (the last 2 are each a type of Categorical Variable).
---------------------
An example of an Ordinal Categorical Variable could be:
What is the highest level of Formal Education you have completed:
1 Less than high school (Grades 1-8 or no formal schooling)
2 High school incomplete (Grades 9-11 or Grade 12 with NO diploma)
3 High school graduate (Grade 12 with diploma or GED certificate)
4 Some college, no degree (includes community college)
5 Two year associate degree from a college or university
6 Four year college or university degree/Bachelor’s degree (e.g., BS, BA, AB)
7 Some postgraduate or professional schooling, no postgraduate degree
8 Postgraduate or professional degree, including master’s, doctorate, medical or law degree (e.g., MA, MS, PhD, MD, JD)
---------------------
An example of a Nominal Categorical Variable could be:
What is your Marital Status:
1 Married
2 Living with a partner
3 Divorced
4 Separated
5 Widowed
6 Never been married
7 Single
---------------------
I've googled around for the phrases like "ordinal stata", and all that seems to come up is examples of Ordinal Logistic Regression where the Dependent Variable (not an Independent Variable) is Ordinal.
My questions:
a) does Stata differentiate between Ordinal and Nominal Categorical Independent Variables (when doing something like, say, Linear Regression or Logistic Regression)?
b) if the answer to (a) is "Yes", then how does one tell Stata whether an Independent Variable is Ordinal or Nominal?
Related Posts with Categorical Variable Types: Ordinal Independent Variable (as opposed to Nominal Independent Variable)
Data of a groupHello, I have a data with normal firms and zombie firms. Both groups have capital. But I want to ge…
margins, eydx after logitHi, I am working with a logit model. I am interested in the percentage change in the probability of…
Two new programs, -rqrs- and -which_version-, available from SSCThanks, as always to Kit Baum, two new programs, rqrs and which_version, are available for download …
LR test mixed results, any advice on what to do?Hello everyone, I am very new here and a very new user of Stata. I am currently in my final year in…
Estimates Restore with Lasso - "no observations" errorHi everyone, I am trying to to in-sample and out of sample prediction with lasso. The following step…
Subscribe to:
Post Comments (Atom)
0 Response to Categorical Variable Types: Ordinal Independent Variable (as opposed to Nominal Independent Variable)
Post a Comment