Description Usage Format Details Source References Examples
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.
1 | data("FoodExpenditure")
|
A data frame containing 38 observations on 3 variables.
household expenditures for food.
household income.
proportion of household income spent on food.
number of persons living in household.
Originally, the proportion
column did not exist, it was created by the bayesbr package.
Taken from Griffiths et al. (1993, Table 15.4).
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.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.