Hi all please i need help,
i have 2 variables,
1: alcscore”: a continuous score containing the respondent’s alcohol consumption
2:female”: 0 being male and 1 being female
My boss has asked me to do this and i have been on this for so long but cannot get it right:
create the outcome variable indicating whether the respondent had any alcohol abuse issue. The variable “alcscore” contains a score that contains the information about the person’s alcohol consumption. The standard for detecting any alcohol abuse issue is that female with a score equal or greater than 3 would be considered having abuse problem while male with a score equal or greater than 4 would be considered having abuse problem. Please create a dummy variable with 1 indicating that the respondent had alcohol abuse problem and 0 indicating that the respondent did not have alcohol abuse problem.
Please help
Related Posts with Generate new variables from existing ones
flat log likelihood encountered, cannot find uphill directionI am working with a time series data, i try to forecast next day volatility with EGARCH (1,1) I got …
data merge: r(459);Hi, I have two panel data-set and what to merge the two data set. I use the following code but I rec…
Bootstrapping versus robust VCE option in xtpoission to deal with overdispersionHi everyone, Does the bootstrapping option in xtpoission deal with overdispersion, or is vce(robust…
Difference-in-difference on matched data with binary outcome variableI have a balanced data with three waves. I want to measure the impact of participation on a binary o…
runiform(a,b) function for a stataSE 12Hi Everyone, I am trying to create a random element that its value is between A and B. therefore I …
Subscribe to:
Post Comments (Atom)
0 Response to Generate new variables from existing ones
Post a Comment