What Is a Categorical Variable?
A categorical variable is a name that describes the category of a thing, and its value is categorical data. For example, "gender" is a categorical variable whose value is "male" or "female"; "industry" is also a categorical variable whose variable value can be "retail industry", "tourism industry", "automobile manufacturing", etc . [1]
Categorical variables
- Categorical independent
- Variable types are not static. Depending on the purpose of the research, various types of variables can be converted. For example, the amount of hemoglobin (g / L) is originally a numerical variable. If the hemoglobin is divided into two types according to normal and low, it can be analyzed by binomial data; if it is severe
Introduction to categorical variables
- Categorical variables can be divided into two types: unordered variables and ordered variables.
Categorical Variable Definition
- Unordered categorical variable refers to the difference in degree and order between the classified categories or attributes. , It can be divided into binomial classification, such as gender (male, female), drug response (negative and positive), etc .; multiple classifications, such as blood type (O, A, B, AB), occupation (industrial, industrial, agricultural , Commerce, studies, soldiers) and so on. For the analysis of disordered categorical variables, you should first group by category, count the number of observation units in each group, and compile a frequency table of categorical variables. The obtained data is disordered categorical data, also known as count data.
- The ordinal categorical variable has a degree of difference between the categories. For example, urine glucose test results are classified by-, ±, +, ++, +++; curative effects are classified by cure, marked effect, improvement, and ineffectiveness. For ordered categorical variables, they should be grouped according to rank order, the number of observation units in each group should be counted, and a frequency table of ordered variables (each rank) should be compiled. The obtained data is called rank data.