O'Reilly logo

Longitudinal Data and SAS by EdD Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10 Study Two: Operations on Daily Weather Data and Ozone Levels

Introduction

The OZONE Data Set

Computing Weekly Averages

Using the MOD Function to Group Data Values

Computing a Moving Average for a Single Variable

Introduction

Data for this chapter consists of daily ozone levels, daily pollen and spore counts, and maximum daily temperature from May 1, 1995, to July 31, 1995. The techniques that will be demonstrated include computing weekly and moving averages. These techniques are useful to show trends in data values over time when there are large day-to-day fluctuations in the values. Economists use moving averages to look at stock prices or other values when they want to examine long-term trends.

The OZONE Data Set

Run Program Appendix-4

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required