I have the following data hhid group
11001 Other fruits
11001 legumes nuts and seeds
11001 legumes nuts and seeds
11001 legumes nuts and seeds
11001 Oils and fats
11002 white roots and tubers
11002 starchy plants
11002 legumes nuts and seeds
11002 starchy plants
11002 starchy plants
11002 legumes nuts and seeds
11002 starchy plants
11011 starchy plants
11011 legumes nuts and seeds
11011 starchy plants
11016 Other fruits
11016 starchy plants
11016 legumes nuts and seeds
11016 starchy plants
11016 legumes nuts and seeds
11018 white roots and tubers
11018 starchy plants
11018 legumes nuts and seeds
I want to gen another variable production showing the different crops grown per household from the variable group which is the group of food for example the house household number 11001 should be 3. Then collapse by hhid
Thanks
11001 Other fruits
11001 legumes nuts and seeds
11001 legumes nuts and seeds
11001 legumes nuts and seeds
11001 Oils and fats
11002 white roots and tubers
11002 starchy plants
11002 legumes nuts and seeds
11002 starchy plants
11002 starchy plants
11002 legumes nuts and seeds
11002 starchy plants
11011 starchy plants
11011 legumes nuts and seeds
11011 starchy plants
11016 Other fruits
11016 starchy plants
11016 legumes nuts and seeds
11016 starchy plants
11016 legumes nuts and seeds
11018 white roots and tubers
11018 starchy plants
11018 legumes nuts and seeds
I want to gen another variable production showing the different crops grown per household from the variable group which is the group of food for example the house household number 11001 should be 3. Then collapse by hhid
Thanks

Comment