1. Learn
  2. /
  3. Courses
  4. /
  5. Data Analysis and Statistical Inference

Exercise

Turning info into knowledge - Numerical data

Some define Statistics as the field that focuses on turning information into knowledge. The first step in that process is to summarize and describe the raw information - the data.

The BRFSS questionnaire is a massive trove of information. A good first step in any analysis is to distill all of that information into a few summary statistics and graphics. Let's start with a numerical summary.

You can use functions mean, var and median to calculate the (surprise, surprise) mean, variance and median of certain variables of your data frame.

The function summary() returns a numerical summary: minimum, first quartile, median, mean, third quartile, and maximum.

Instructions

100 XP
  • Calculate the mean, var and median of the weight variable of your data frame. (Just print it, no need to assign objects.)
  • Use the summary() function to see some numerical facts about the weight variable of your data frame. (Again just print it.)