Hi All,
I am quite new to Stata. I have five variables which each ask whether cannabis has been consumed in a certain way in the past 12 months. They are: vaped, dabbed, smoked, eaten, and drank. Obviously these are not mutually exclusive (i.e. if someone has vaped that does not mean they haven't used cannabis by any other method in the past 12 months). I am wondering if there is a way to create a meaningful composite variable? I would like to know which of these methods a person has used in the past 12 months. Is there a way to create a composite variable to measure this? I imagine it would have to be a variable with a bunch of different categories to account for different drug combinations. In such a variable, my guess is that the cell count would be super low for certain sections (like dabbed, vaped, and smoked, for example). Is there anything I can do here?
Best,
Nick
Related Posts with Creating Composite Variable (from non-mutually exclusive categorial variables)
xtabond2: two way clustering-dynamic panelHello all. For my master thesis I am trying analyse what are the determinants of Non Performing Loan…
How to merge different Excel File.Hello Sir, I have 4 separate -excel files required to merge in one excel file. This is the longitud…
How to save the "drift" parameter of a Dickey-Fuller unit-root test (dfuller)?I would like to save the "drift" parameter of a Dickey-Fuller unit-root test, in order to export it …
How do I reshape my dataset with three identifiers (time, location, and index) when it's already wide?Hello Statalists, This is an air quality panel data and it looks like this: Array The variable names…
Autocorrelation (ac and pac)I'm using the autocorrelation command ac and the partial autocorrelation command pac. I'm running th…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Composite Variable (from non-mutually exclusive categorial variables)
Post a Comment