Hi all,
I am absolutely brand new to STATA, and have been given a fairly large undertaking.
Any help at all would be infinitely appreciated!
I have a variable 'type of cancer' which is broken down into 13 different diagnoses and 1 'no cancer'
I would like to recode this variable in 2 different ways:
1. so that it is just 2 levels - any cancer vs no cancer
2. and also, I would like to join 2 of the variables together (throat cancer + pharyngeal cancer) and then collapse the rest into 'any cancer' and keep the 'no cancer' as it is (so I can compare).
I have been told to 'recode no cancer as missing" but I'm not sure what that means.
I am not sure what the command would be to generate these new variables, while also not changing the original variable.
I'm not sure if this is the appropriate place to ask, but I'm in need of assistance and I would truly appreciate any insight!!
Thank you
Al
I am absolutely brand new to STATA, and have been given a fairly large undertaking.
Any help at all would be infinitely appreciated!
I have a variable 'type of cancer' which is broken down into 13 different diagnoses and 1 'no cancer'
I would like to recode this variable in 2 different ways:
1. so that it is just 2 levels - any cancer vs no cancer
2. and also, I would like to join 2 of the variables together (throat cancer + pharyngeal cancer) and then collapse the rest into 'any cancer' and keep the 'no cancer' as it is (so I can compare).
I have been told to 'recode no cancer as missing" but I'm not sure what that means.
I am not sure what the command would be to generate these new variables, while also not changing the original variable.
I'm not sure if this is the appropriate place to ask, but I'm in need of assistance and I would truly appreciate any insight!!
Thank you
Al
Comment