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
Exogenous variables in DCC modelHi all, Is there any way to include exogenous variables in a DCC model? I'm using the mgarch dcc co…
Looping through different databasesHi guys, I would like to make a loop that includes several different variables for different databa…
t-test on coefficient of probit regressionHello there, I'm trying to find the impact of contingencies on an explanatory variable in a probit r…
For loopHi guys, I would like to make a loop that includes several different variables for different databa…
Interpretation of user-written khb program output, reduced OR-full OR != diff ORI'm using the user-written package khb in Stata15 on Windows 10. My data are sensitive and cannot be…
Subscribe to:
Post Comments (Atom)
0 Response to Coding the variables
Post a Comment