I have a variable in my dataset called fbnone, representing if respondents to a survey have no fringe benefits. It is a dummy variable where if they have no fringe benefits it is equal to 1 and if they do have fringe benefits it is equal to zero. However, I also have two other variables flextime and transitbenefits which I would like to include in fbnone. Basically, I want my new variable FBNone to be 1 if (fbnone=1, flextime=0, and transitbenefits=0). How would I go about generating this variable?
Related Posts with Generating a variable using several other variables
Co-occurence matrix for patent technological classessDear, I have a list of patents defined by an application id, each patent has number of technologica…
areg vs reghdfe vs xtreg with a group of controlling variables and fixed effectsHi Statalist, I want to run OLS regression on my dataset and I need advice on if I should choose ar…
Tobit in Difference in Differencewhen i run the tobit regression tobit lexp_care year stats g_stats_yr,ll(0) margins,dydx (*)atmeans …
Converting data information into variable labelI got a spreadsheet with its first row contains the variable names and second row contains the corre…
Testin overdispersion in Negative BinomialHi all, is there a way to test the presence of overdispersion in a panel negative binomial model? I…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable using several other variables
Post a Comment