BookmarkSubscribeRSS Feed
vvvishwak
Calcite | Level 5

Level 1

  1. Producing a Descriptive Statistic Report

The pg1.np_westweather table contains weather-related information for four national parks: Death Valley National Park, Grand Canyon National Park, Yellowstone National Park,
and Zion National Park. Use the MEANS procedure to analyze the data in this table.

  1. Create a new program. Write a PROC MEANS step to analyze rows from pg1.np_westweather with the following specifications:
    1. Generate the mean, minimum, and maximum statistics for the Precip, Snow, TempMin, and TempMax columns.
    2. Use the MAXDEC= option to display the values with a maximum of two decimal positions.
    3. Use the CLASS statement to group the data by Year and Name.
    4. Use Weather Statistics by Year and Park as the report title. Run the program
      and review the results.

vvvishwak_0-1644085024285.png

Hope you can help.

THANKS.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Show us what code you have tried.

--
Paige Miller
Cynthia_sas
Diamond | Level 26
Hi:
This looks like one of the practices in the Programming 1 class. Typically, those practices have a starter file or quite detailed instructions and then there's a question you have to answer. Usually, the description for the practice shows you what the solution output should look like? Can you verify what lesson you're working in and provide some more clarification regarding your question? What code have you tried? Were there errors in the SAS log when you ran your code?
Cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1331 views
  • 2 likes
  • 3 in conversation