Hi all
I am trying to find out the average of certain categorical variables.
The variable Name_mat is a string variable, therefore I destring(ed) them and used the label define command to label the codes which I wanted for my analysis.
I used the command tab Name_mat, sum(Name_mat) to find the mean. However, the mean values of the respective variables are the same as the codes they had been coded. Array
Related Posts with Categorical Variables
Mean on a graph pieHello. I have two variable : one is continous, the other is trinary. I want to make a graph pie of t…
Generate new variable in a panel taking differencesHello, I am working in stata 15 on windows 10 and I want to create a variable that is the differenc…
Doing Merge using rangejoinHello, I am a new member to this forum! Nice to meet you all. I have just went through set of posts…
Identify variables in a rangeHello, Can you please help me with the following issue: I would like to identify the ids of the com…
Lag not working for monthly/quarterly dataI am struggling with this issue and can't understand, why it's not working. I have quarterly cross-s…
Subscribe to:
Post Comments (Atom)
0 Response to Categorical Variables
Post a Comment