Add your Name and the Date

The first thing you need to do in this file is to add your name and date in the lines underneath this document’s title (see the code in lines 9 and 10).

Identify and Set Your Working Directory

You need to identify and set your working directory in this section. [1] “Observation” “Sex”
[3] “Age” “Hometown”
[5] “Favorite Meat” “Favorite Sauce”
[7] “Sweetness” “Favorite Side”
[9] “Restaurant City” “Restaurant Name”
[11] “Minutes Driving” “Sandwich Price”
[13] “Dinner Plate Price” “Ribs Price”

Installing and Loading Packages and Data Set

You need to install and load the packages and data set you’ll use for the lab assignment in this section.

Descriptive Statistics

You need to calculate and describe the results of the descriptive or summary statistics identified in the lab assignment in this section.

Means

You need to calculate and describe the means of the variables that identify the price respondents would pay for a plate of ribs and how far they would drive for BBQ in this subsection.

Ribs = 22.87 Drive = 40.05

Medians

You need to calculate and describe the medians of the variables that identify respondents’ ages and their preferred level of sweetness in a BBQ sauce in this subsection.

seems like the median age is 21 and the median for sweetness is 3

Modes

You need to calculate and describe the modes of the variables that identify a respondent’s origin, preferred meat, and preferred sauce in this subsection. When describing these results, you need to convert the numerical modes of the different variables into words according to the survey codebook (available on AsU Learn or in the “Week6Materials” folder).

Meat = 1) Pulled Pork Sauce = 1) Eastern Style (with no tomato) Origin = 1) Eastern or Central NC

Ranges, Maximiums, and Minimums

You need to calculate and describe the ranges, maximums, and minimums of the variables that identify respondents’ ages and how many minutes they would drive for BBQ in this subsection.

Age max = 99 min= 10 range = 10 99 Minutes max = 500 min = 0 range = 0 500

Standard Deviations

You need to calculate and describe the standard deviation of the variables that identify the number of minutes a respondent would drive for BBQ and the price they would pay for a plate of ribs in this subsection.

Mins = 47.65 Ribs = 10.51

Publish Document

Click the “Knit” button to publish your work as an html document. This document or file will appear in the folder specified by your working directory. You will need to upload both this RMarkdown file and the html file it produces to AsU Learn to get all of the lab points for this week.