SAS Programming

DATA Step, Macro, Functions and more
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
SAS Super FREQ
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

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 1087 views
  • 2 likes
  • 3 in conversation