Skip to main content

Exercises 1.9 Exercises

The exercises for this chapter are based on the NSFG pregnancy file.

2. Exercise 1.2.

Create a new column named totalwgt_kg that contains birth weight in kilograms (there are approximately 2.2 pounds per kilogram). Compute the mean and standard deviation of the new column.

3. Exercise 1.3.

What are the pregnancy lengths for the respondent with caseid 2298?
What was the birth weight of the first baby born to the respondent with caseid 5013? Hint: You can use and to check more than one condition in a query.