Lab3 External files: reading and writing - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Lab3 External files: reading and writing

Description:

Save the data as an ASCII data set called lab2.dat and try to read in lab2.dat you just create. Write the SAS statements to generate a frequency bar chart for GROUP ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 5
Provided by: carr133
Category:

less

Transcript and Presenter's Notes

Title: Lab3 External files: reading and writing


1
Lab3 External files reading and writing
  • One method to read in an ASCII data set
  • DATA lab3
  • INFILE c\mydata.dat
  • INPUT id gender exam1 exam2 hw
  • compute final score and grade
  • final (exam1 exam2) / 2
  • IF (final gt 0 AND final lt 60) THEN
    grade'F'
  • ELSE IF final gt 60 THEN grade'P'
  • RUN

2
Lab3 External files reading and writing
  • A method to write out an ASCII data set
  • DATA _null_
  • SET lab3
  • FILE c\score.dat
  • PUT id gender final grade
  • RUN

3
Assignment Lab 23
  • Read in the following data and generate a new
    variable called XYZ which is XYZ

4
Assignment Lab23
  • Save the data as an ASCII data set called
    lab2.dat and try to read in lab2.dat you just
    create
  • Write the SAS statements to generate a frequency
    bar chart for GROUP
  • Write the SAS statements to generate a separate
    plot of Y vs. X for each value of the GROUP
    variables
  • Write the SAS statements to find the mean,
    median, and mode for a new variable XYZ
Write a Comment
User Comments (0)
About PowerShow.com