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
Comparing subcategories between groupsDear group members, I would like to ask whether you could suggest me a test for the following situat…
All standard errors missingHi everyone, I am using the following specification: Code: reghdfe y_hat female_cw i.age if …
cmp command with panel dataDear all, I need to estimate bivariate probit model but with panel data, therefore I need something…
Using instrumental variable in difference-in-difference model Code: xtreg outcome treated post did $controls i.year, fe vce(robust) By using the above fixed-effe…
Random effect model and correcting heteroscedastic/serial correlated standard errorHello to everyone can see my post, I am running a panel model for balanced data with N = 14 and T= …
Subscribe to:
Post Comments (Atom)
0 Response to Coding the variables
Post a Comment