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 i do not know what to do
Difference between sreweight and survwgt rakeHello to everyone, I was using sreweight as a reweighting command for one of my do files, when my c…
Questions on computing the marginal effects of the factor variableDear all, I am wondering how to compute the marginal effects of a factor variable if the number of o…
Should I use Cox PH regression when there is large share of observations that never 'die'?I'm considering model patent right transfer as a survival process. That is, when a patent is transfe…
Using a loop to rename variable label that has distinct symbolsHi Statalist community, I am using the voter.dta dataset as an example. I am using the tabulate com…
ATT of did_imputation by Borusyak et al. 2021I know in case of csdid if I run the following regression then I'll get the ATT. Code: csdid ln_w…
Subscribe to:
Post Comments (Atom)
0 Response to i do not know what to do
Post a Comment