Last data update: 2014.03.03

R: Grocery Spending
GroceryR Documentation

Grocery Spending

Description

The consumer expenditure survey, created by the U.S. Department of Labor, was administered to 30 households in Watauga County, North Carolina, to see how the cost of living in Watauga county with respect to total dollars spent on groceries compares with other counties. The amount of money each household spent per week on groceries is stored in the variable groceries. Data are used in Example 8.3.

Usage

Grocery

Format

A data frame with 30 observations on the following variable:

groceries

total dollars spent on groceries

Source

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. (2008) Probability and Statistics with R. Chapman & Hall/CRC.

Examples

with(data = Grocery, 
z.test(x=groceries,sigma.x=30,conf.level=.97)$conf)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(PASWR)
Loading required package: e1071
Loading required package: MASS
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/PASWR/Grocery.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Grocery
> ### Title: Grocery Spending
> ### Aliases: Grocery
> ### Keywords: datasets
> 
> ### ** Examples
> 
> with(data = Grocery, 
+ z.test(x=groceries,sigma.x=30,conf.level=.97)$conf)
[1] 108.7473 132.5194
attr(,"conf.level")
[1] 0.97
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>