FoodExpenditure: Spending on Food by Household Income

Description Usage Format Details Source References Examples

Description

Data frame on the proportion of food expenses per household income. 38 house rents were evaluated in a random sample from a large city in the United States.

Usage

1
data("FoodExpenditure")

Format

A data frame containing 38 observations on 3 variables.

food

household expenditures for food.

income

household income.

proportion

proportion of household income spent on food.

persons

number of persons living in household.

Details

Originally, the proportion column did not exist, it was created by the bayesbr package.

Source

Taken from Griffiths et al. (1993, Table 15.4).

References

doi: 10.18637/jss.v034.i02 Cribari-Neto, F., and Zeileis, A. (2010). Beta Regression in R. Journal of Statistical Software, 34(2), 1–24.

doi: 10.1080/0266476042000214501 Ferrari, S.L.P., and Cribari-Neto, F. (2004). Beta Regression for Modeling Rates and Proportions. Journal of Applied Statistics, 31(7), 799–815.

doi10.1002/jae.3950090208 Griffiths, W.E., Hill, R.C., and Judge, G.G. (1993). Learning and Practicing Econometrics New York: John Wiley and Sons.

Examples

1
2
3
4
5
6
7
8
9
data("FoodExpenditure", package = "bayesbr")

bbr <- bayesbr(proportion ~ income + persons, data = FoodExpenditure,
             iter=100)
residuals(bbr, type="quantile")


pmse <-pmse(proportion ~ income + persons, test.set=0.4,
          data = FoodExpenditure, iter=100)$PMSE

bayesbr documentation built on July 17, 2021, 1:07 a.m.