R/Expenditure.R
Expenditure.RdExpenditure data from Pakistan Social and Living Standards Measurement 2015-16.
data(Expenditure)
A data.table and data.frame with 24238 observation of 14 variables.
hhcodeHousehold 10 digits code.
FoodFood and non-alcoholic beverages
HotelsRestaurants and hotels
FurnishingFurnishing, Household equipment and routine maintenance of the house
MiscMiscellaneous goods and services
TobaccoAlcoholic beverages and tobacco
HousingHousing, Water, Electricity, Gas and other fuels
ClothingClothing and Foot wear
HealthHealth
TransportTransport
CommunicationCommunication, Postal services
RecreationRecreation and Culture
EducationEducation
DurableGoodsDurable Goods
NonDurableTotal expenditure on non-durable goods
Pakistan Bureau of Statistics, Micro data (http://www.pbs.gov.pk/content/microdata).
# library(PSLM2015) # data("Expenditure") # data("Employment") # library(dplyr) # income<- Employment %>% rowwise() %>% # mutate(TotalIncome = sum((s1bq08*s1bq09), # s1bq10, s1bq15, s1bq17, s1bq19, s1bq21 # , na.rm = TRUE)) # exp<-Expenditure %>% select(c("hhcode","NonDurable")) # HHIncome<-income %>% group_by(hhcode) %>% # summarise(HHAvgIncome = sum(TotalIncome)) # IncomeExp<-HHIncome %>% left_join(exp, by = "hhcode")