Categorical Variable Stata. The continuous predictor variable socst is a standardized test score for social studies. You can put a between two variables to create an interaction indicators for each combination of the categories of the variables.
The first case most often occurs when importing data from another source. The categorical variable is female a zero one variable with females coded as one therefore male is the reference group. Table a b c mean c.
Table a b c mean c.
Sometimes for whatever reason stata incorrectly calls a categorical variable a string variable. Factor variables create indicator variables for the levels categories of categorical variables and optionally for their interactions. In stata this is often true because stata treats string encoded variables as missing and will not use them in analyses. Values that do not meet any of the conditions of the rules are left unchanged unless an otherwise rule is specified.