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!
Standard deviation lines for xtline graphI am wondering how to add standard deviation lines to a timeseries graph I made (xtline) I calculat…
Question with making inference from a random sampleDear stateliest fellows, I am very sorry to bother you about this question. Since I am got trapped …
After estimation, how can I obtain predictions at the mean of some of the covariates?I know that after estimation if I replace some of the covariates with their means and predict, I can…
Graphing Interaction of Time-Varying Covariate and Dummy Variable in a Growth Curve Model using MIxedGreetings. I have a longitudinal data set (set up in long form), and I am trying to graph a signific…
Multicollinearity after variable transformation & impact on R^2Hello, I am running a simple linear regression model and I found that 3 of my variables (ssr1 ssr2 …
Subscribe to:
Post Comments (Atom)
0 Response to generate separate group variables instead of categorical variable. Need your help!
Post a Comment