Dear All,
Kindly assist with a code for dropping observations in a group of variable, based on a condition. I am working with a panel data of 5 years, looking at household electricity consumption. I would like to analyse the data only for people with access to electricity. The electricity access variable is a dummy. If I say keep if electricity access==1, observations do get dropped but the panel becomes unbalanced. So I would like all the variables to only be for people with access to electricity.
Thanking you in advance.
Regards,
Kindly assist with a code for dropping observations in a group of variable, based on a condition. I am working with a panel data of 5 years, looking at household electricity consumption. I would like to analyse the data only for people with access to electricity. The electricity access variable is a dummy. If I say keep if electricity access==1, observations do get dropped but the panel becomes unbalanced. So I would like all the variables to only be for people with access to electricity.
Thanking you in advance.
Regards,
Comment