Hi, I am new to stata so would appreciate the help with what I realise is probably quite a basic question
Essentially I am running a statistical project where we are looking at if political party affiliation effects view on britain. To run these regressions we have a data set that contains the variable "partyfw" which contains the list of parties. However I need to create dummy variables of each party so we can see the individual impact, how can i do this? when i enter the code: gen Conservative = (partyfw == "Conservative") it gives me an error message. Please help?
Essentially I am running a statistical project where we are looking at if political party affiliation effects view on britain. To run these regressions we have a data set that contains the variable "partyfw" which contains the list of parties. However I need to create dummy variables of each party so we can see the individual impact, how can i do this? when i enter the code: gen Conservative = (partyfw == "Conservative") it gives me an error message. Please help?

Comment