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)
Logit regression, cross sectional data, country, industry and year fixed effectI face a problem in understanding the structure of my data and in estimating. For my study, I use th…
Data visualization - How to break a label on tline into multiple lines?Hello, Please see my current graph. I would like to split the "Arab Spring" label in two lines M…
Semipar trimming the plotsxtsemipar lprice ldist larea lland rooms bath age, nonpar(linst) cluster(countrynumber) ci I am run…
How to refer to specific pairs of observations-variables using locals, ex: "`=price[make == "AMC Concord"]'"Dear all, I was trying to automate the creation of a two-sided bar graph and then realized that the…
Testing proportional hazard assumption in multilevel parametric event settingHello everyone, I am conducting a recurrent event-history analysis using the mestreg command with e…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Composite Variable (from non-mutually exclusive categorial variables)
Post a Comment