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
Parallel trends assumption with continuous treatment variable - DiDHi, I have survey data on individual firms from 2008-2017. I want to test how a reform that happene…
Dummy for a Criminal to commit a crime again in futureHello everyone, Need help with this. I need to see if a person will commit a crime again after his c…
ArdlHello STATA users, what technics can be used to fix heteroskedasticity in ARDL model besides droppin…
Identify observations appeared in the previous yearDear All, I find this question here. The data set is Code: * Example generated by -dataex-. To inst…
Generating Probabilities from RangeHi everyone, I have question regarding how to calculate probabilities from data. My idea is to crea…
Subscribe to:
Post Comments (Atom)
0 Response to Categorical Variables
Post a Comment