Dear all
I am working with crop productivity data from Bangladesh and there are multiple variables including HH id, Plot name, Crop name, output, name of the material used etc. For the time being, I need to work only on Paddy crop ( I have around 50 varieties of crop in my dataset). How do I code my crop name variable in such a manner that I get to keep all the observations which have Paddy as their crop name and all the others are dropped/removed? I will be working with the other crop names too later on.
Should I use the reshape command or encode the crop name variable?
Kindly let me know.
Thanks
Enakshi
Related Posts with Coding the variables
Replace variable with subset of observationsI haven't used Stata in a while now and am a bit ashamed that I don't know how to proceed with this …
Keep the duplicate observation based on the highest value of a variableDear Statalist, I recently combined multiple files (filename_v1, filename_v2, etc.) into a single d…
Creating age-range variableHello! I would like to create a new age-range variable, which will be a breakdown of already existin…
Displaying symbols in value labelsHi, is there a way to display math symbols like "greater than or equal to" as value labels and have …
need equal spaces for unequal time points in x-axis of graphI'm trying to create a line graph showing trends in religiosity across five waves of survey data (2,…
Subscribe to:
Post Comments (Atom)
0 Response to Coding the variables
Post a Comment