Hi everyone,
I have a logistic model to test the effect of different individual characteristics on participation in charitable giving.
My model looks like logit charity_participation i.generation sex i.income_class i.educ_level happiness char_conf marital_status i.religion
The variable of interest in generation which I have created recoded the variable from WVS:
gen generation = .
replace generation = 1 if V241 >= 1943 & V241 <= 1963
replace generation = 2 if V241 >= 1964 & V241 <= 1979
replace generation = 3 if V241 >= 1980 & V241 <= 1995
label define gencuts 1 "Baby Boomers" 2 "Generation X" 3 "Millennials"
label values generation gencuts
V241 is a variable which corresponds the birth age of the respondents.
As a result using i.generation in the logic model I can interpret the results for Generation X and Millennials related to the Baby Boomers (difference Millennials and Gen X from Baby Boomers).
My question: I would like to have 3 separate generations to interpret their variables separately (not related to base group - Baby Boomers). Should I then create instead of categorical variable separate variable for each of 3 generations? can you help with the coding in that case?
Thank you in advance.
Related Posts with generate separate group variables instead of categorical variable. Need your help!
lclogit inquiryHi everyone, I'm new to Stata. I'm trying to classify individuals from which I have data in a series…
Reshape multiple years observations from wide to longDear all, my current data structure is as follows: DATA CompanyID 2011 2012 2013 … 2019 VarOfIn…
Store and export p values from pwcorr in a loopI am running correlations for ~3,000 variables. The nuance of the usefulness of p values versus conf…
9 Month back for date of birthHi, I have data on b1 (month of birth) and b2 (year of birth). I want to go back 9 (nine) months fro…
How do I estimate a first order autoregressive equation with firm and year fixed effects ???I am really new to Stata and I need to estimate the following empirical specification on Stata for m…
Subscribe to:
Post Comments (Atom)
0 Response to generate separate group variables instead of categorical variable. Need your help!
Post a Comment