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!
Parmby gives 'normal' instead of 'logit' confidence intervals when using proportion commandAfternoon all, I have a question about the excellent parmby module, provided by Roger Newson. As a…
ddeviance result differs from MinitabFor the delta deviance influence diagnostic in logistic regression ddeviance from predict (using v 1…
Help Needed With Interpreting Multiple Categorical by Categorical InteractionsDear All: I suddenly found myself confused in interpreting multiple interactions of categorical var…
Calculating a tenure proxyHello everyone, I want to calculate auditor tenure variable from the following variables: firm id, y…
Error: Op. System refuses to provide memory; r(909)Hello everyone, I am trying to append two datasets of approximately 8GB and 6GB resp. Each time I ru…
Subscribe to:
Post Comments (Atom)
0 Response to generate separate group variables instead of categorical variable. Need your help!
Post a Comment