R/Expenditure.R
Expenditure.Rd
Expenditure
data from Pakistan Social and Living Standards Measurement 2015-16.
data(Expenditure)
A data.table
and data.frame
with 24238 observation of 14 variables.
hhcode
Household 10 digits code.
Food
Food and non-alcoholic beverages
Hotels
Restaurants and hotels
Furnishing
Furnishing, Household equipment and routine maintenance of the house
Misc
Miscellaneous goods and services
Tobacco
Alcoholic beverages and tobacco
Housing
Housing, Water, Electricity, Gas and other fuels
Clothing
Clothing and Foot wear
Health
Health
Transport
Transport
Communication
Communication, Postal services
Recreation
Recreation and Culture
Education
Education
DurableGoods
Durable Goods
NonDurable
Total 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")