SAS Workshop. Iowa State University May 9, Introduction to SAS Programming. Day 1 Session Iii

Size: px
Start display at page:

Download "SAS Workshop. Iowa State University May 9, Introduction to SAS Programming. Day 1 Session Iii"

Transcription

1 SAS Workshop Introduction to SAS Programming Day 1 Session Iii Iowa State University May 9, 2016

2 Repetitive Computation Repetitive computation is achieved through the use of do loops. In the SAS data step language, several forms of do statements are available. An iterative do loop, in general, is used to perform the same computation on a sequence of variables. This requires the sequence of variables to be defined as elements of an array. The array statement allows the user to reference the variables using the matching array elements using subscripts. The use of iterative do loops and the array statement in the data step are illustrated in Examples A9 - A12

3 Processing a Sequence of Variables Example A9 data compete; input Red Blue Grey Green White; array grade8(5) Red Blue Grey Green White; Total=0; drop Team; do Team=1 to 5; if grade8(team)=. then grade8(team)=0; grade8(team)= grade8(team)*10; Total + grade8(team); end; datalines; ; proc print; run;

4 Writing observations into the data set In the execution of a SAS data step, the statements in a data step are executed and an observation is written to the output SAS data set, for every line of input data. However, the user can insert an output statement in the data step at the any point where he/she wishes to write a new observation to the SAS data set. When an output statement is encountered, SAS writes a new observation to the SAS data set containing the current values of the variables. In Example A10, we create data values in the data step internally (i.e. no external data are input), by doing a calculation and use the output statement to write the data as new observations. We use an iterative do loop to do the calculation and the write the results as an observation into a data set repeatedly.

5 Writing Observations into a SAS Dataset Example A10 data convert; do Celsius= -10 to 40 by 5; Fahrenheit=9*Celsius/5+32; output; end; run; proc print data=convert; title "Celsius to Fahrenheit Converter"; run;

6 More uses of do loops and arrays In Example A4 we used do loops and arrays to change or transform data values in a data set. By inserting an output statement inside a do loop we can form multiple observations from data values in a single data line. This gives us a useful method perform an operation called transposing. Transposing is using data lines in input data to form columns (or variables) in a SAS data set. In Example A11, the data values in each data line (Quiz scores) form values of the variable called Score in the output data set. The value of the variable Name remain the same for each of the values in the same data line.

7 More Examples of do loop and array Example A11 data quizzes; input Name $ Quiz1-Quiz5; array scores (5) Quiz1-Quiz5; drop Quiz1-Quiz5; do Test= 1 to 5; if scores(test)=. then scores(test)= 0 ; Score = scores(test); output; end; datalines; Smith Jones ; proc print data=quizzes; run;

8 More uses of do loops and arrays In Example A12 we use the method we discussed in the previous example to read in a data set At the same time, we convert it to a form suitable to be input to proc anova or proc glm etc. Most of the time, this is done in practice by reading in a single value per data line. The method we use is more intiutive because the data appears in the data lines in the the same form they would appear in a data table. Notice that in this example we have two do loops, an inner do loop nested within an outer do loop. For the values of the subscripts we use the actual values of the corresponding variables Amount and Concentration.

9 Example A12 data reaction; length Concentration $4; do Amount =.9 to.6 by -.1; do Concentration = '1%', '1.5%', '2%', '2.5%', '3%' ; input output; end; end; datalines; ; proc print; title 'Reaction times for biological substrate'; run;

10 Additional Notes on Arrays Arrays are used for repetitive processing of variables The array statement can be used to perform the same task on a group of variables. array array-name (subscript) <variable-list> <(initial- values)>; You can then use the array name with parentheses and a subscript as in the examples. Notes: 1. All the variables in an array must be of the same type. 2. An array cannot have the same name as a variable name. 3. Subscript may be a number giving the dimension size or a range of subscripts such as 1:5 4. If an asterisk (*) is used as the subscript, SAS will determine the dimension size by counting the variables in the list.

Loops / Repetition Statements. There are three loop constructs in C. Example 2: Grade of several students. Example 1: Fixing Bad Keyboard Input

Loops / Repetition Statements. There are three loop constructs in C. Example 2: Grade of several students. Example 1: Fixing Bad Keyboard Input Loops / Repetition Statements Repetition s allow us to execute a multiple times Often they are referred to as loops C has three kinds of repetition s: the while loop the for loop the do loop The programmer

More information

Lecture 1 Getting Started with SAS

Lecture 1 Getting Started with SAS SAS for Data Management, Analysis, and Reporting Lecture 1 Getting Started with SAS Portions reproduced with permission of SAS Institute Inc., Cary, NC, USA Goals of the course To provide skills required

More information

Loops / Repetition Statements

Loops / Repetition Statements Loops / Repetition Statements Repetition statements allow us to execute a statement multiple times Often they are referred to as loops C has three kinds of repetition statements: the while loop the for

More information

CPE 101 slides adapted from UW course. Overview. Chapter UW CSE H1-1. An Old Friend: Fahrenheit to Celsius. Concepts this lecture

CPE 101 slides adapted from UW course. Overview. Chapter UW CSE H1-1. An Old Friend: Fahrenheit to Celsius. Concepts this lecture CPE 101 slides adapted from UW course Lecture (9): Iteration Overview Concepts this lecture Iteration - repetitive execution Loops and nested loops while statements for statements 2000 UW CSE H1-1 H1-2

More information

INTRODUCTION TO C++ PROGRAM CONTROL. Dept. of Electronic Engineering, NCHU. Original slides are from

INTRODUCTION TO C++ PROGRAM CONTROL. Dept. of Electronic Engineering, NCHU. Original slides are from INTRODUCTION TO C++ PROGRAM CONTROL Original slides are from http://sites.google.com/site/progntut/ Dept. of Electronic Engineering, NCHU Outline 2 Repetition Statement for while do.. while break and continue

More information

Cleaning a Course Shell

Cleaning a Course Shell Cleaning a Course Shell Sometimes you copy information from the wrong course or copy duplicate information and need to remove it. Unfortunately there isn t an easy way of doing this, you have to clean

More information

Name: Partner: Python Activity 9: Looping Structures: FOR Loops

Name: Partner: Python Activity 9: Looping Structures: FOR Loops Name: Partner: Python Activity 9: Looping Structures: FOR Loops Learning Objectives Students will be able to: Content: Explain the difference between while loop and a FOR loop Explain the syntax of a FOR

More information

SAS Online Training: Course contents: Agenda:

SAS Online Training: Course contents: Agenda: SAS Online Training: Course contents: Agenda: (1) Base SAS (6) Clinical SAS Online Training with Real time Projects (2) Advance SAS (7) Financial SAS Training Real time Projects (3) SQL (8) CV preparation

More information

Loops / Repetition Statements

Loops / Repetition Statements Loops / Repetition Statements Repetition statements allow us to execute a statement multiple times Often they are referred to as loops C has three kinds of repetition statements: the while loop the for

More information

Information Science 1

Information Science 1 Topics covered Information Science 1 Fundamental Programming Constructs (1) Week 11 Terms and concepts from Week 10 Flow of control and conditional statements Selection structures if statement switch statement

More information

Repetition Structures

Repetition Structures Repetition Structures Chapter 5 Fall 2016, CSUS Introduction to Repetition Structures Chapter 5.1 1 Introduction to Repetition Structures A repetition structure causes a statement or set of statements

More information

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution.

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution. Repetition Structures Introduction to Repetition Structures Chapter 5 Spring 2016, CSUS Chapter 5.1 Introduction to Repetition Structures The Problems with Duplicate Code A repetition structure causes

More information

Effectively Utilizing Loops and Arrays in the DATA Step

Effectively Utilizing Loops and Arrays in the DATA Step Paper 1618-2014 Effectively Utilizing Loops and Arrays in the DATA Step Arthur Li, City of Hope National Medical Center, Duarte, CA ABSTRACT The implicit loop refers to the DATA step repetitively reading

More information

Condition Controlled Loops. Introduction to Programming - Python

Condition Controlled Loops. Introduction to Programming - Python + Condition Controlled Loops Introduction to Programming - Python + Repetition Structures n Programmers commonly find that they need to write code that performs the same task over and over again + Example:

More information

Information Science 1

Information Science 1 Information Science 1 Fundamental Programming Constructs (1) Week 11 College of Information Science and Engineering Ritsumeikan University Topics covered l Terms and concepts from Week 10 l Flow of control

More information

STAT 3304/5304 Introduction to Statistical Computing. Introduction to SAS

STAT 3304/5304 Introduction to Statistical Computing. Introduction to SAS STAT 3304/5304 Introduction to Statistical Computing Introduction to SAS What is SAS? SAS (originally an acronym for Statistical Analysis System, now it is not an acronym for anything) is a program designed

More information

Contents. Generating data with DO loops Processing variables with arrays

Contents. Generating data with DO loops Processing variables with arrays Do-to & Array Contents Generating data with DO loops Processing variables with arrays 2 Generating Data with DO Loops Contents Introduction Constructing DO loops Do loop execution Counting do loop iterations

More information

elearning Guide to To access the elearning, go to and click Login in the top right corner.

elearning Guide to To access the elearning, go to   and click Login in the top right corner. elearning Guide to This is a step-by-step guide to help you navigate through the elearning material of the FABS/Fast Track FABS Training Programme. The elearning has been designed to be user friendly and

More information

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. The Increment and Decrement Operators

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. The Increment and Decrement Operators Chapter 5: 5.1 Looping The Increment and Decrement Operators The Increment and Decrement Operators The Increment and Decrement Operators ++ is the increment operator. It adds one to a variable. val++;

More information

REPETITIVE EXECUTION: LOOPS

REPETITIVE EXECUTION: LOOPS Contents REPETITIVE EXECUTION: LOOPS... 1 for Loops... 1 while Loops... 6 The break and continue Commands... 8 Nested Loops... 10 Distinguishing Characteristics of for and while Loops Things to Remember...

More information

LexisNexis Webinars User Guide

LexisNexis Webinars User Guide Welcome to LexisNexis Webinars. You are now personally registered to access the webinars that are included in your firm s subscription. Our full annual programme provides 250 webinars covering 4 tax and

More information

Week 9: PROC TABULATE (Chapter 19)

Week 9: PROC TABULATE (Chapter 19) Week 9: PROC TABULATE (Chapter 19) We continue exploring primarily describing data to make it easier to present and understand. PROC TABULATE is especially useful for qualitative variables or for breaking

More information

ACADEMIC TECHNOLOGY SUPPORT

ACADEMIC TECHNOLOGY SUPPORT ACADEMIC TECHNOLOGY SUPPORT Assessments Student Quick Start Guide ats@etsu.edu 439-8611 www.etsu.edu/ats Table of Contents: Accessing Assessments... 1 Navigating the Quiz List... 1 Taking an Assessment...

More information

SAS/STAT 13.1 User s Guide. The NESTED Procedure

SAS/STAT 13.1 User s Guide. The NESTED Procedure SAS/STAT 13.1 User s Guide The NESTED Procedure This document is an individual chapter from SAS/STAT 13.1 User s Guide. The correct bibliographic citation for the complete manual is as follows: SAS Institute

More information

Problem Solving and 'C' Programming

Problem Solving and 'C' Programming Problem Solving and 'C' Programming Targeted at: Entry Level Trainees Session 05: Selection and Control Structures 2007, Cognizant Technology Solutions. All Rights Reserved. The information contained herein

More information

Web Data Entry Tool Training guide 2017 MIPS reporting

Web Data Entry Tool Training guide 2017 MIPS reporting Web Data Entry Tool Training guide 2017 MIPS reporting Logging into the dashboard: Please click on the link (https://dataderm.aad.org/dashboard/login.aspx) to be taken to the dashboard. Login to the screen

More information

Chapter 6: Modifying and Combining Data Sets

Chapter 6: Modifying and Combining Data Sets Chapter 6: Modifying and Combining Data Sets The SET statement is a powerful statement in the DATA step. Its main use is to read in a previously created SAS data set which can be modified and saved as

More information

Administrator Quick Guide

Administrator Quick Guide 1 Administrator Quick Guide Login Screen The first page employees will see when visiting their training site is the login screen. This is where employees must enter their username and password to access

More information

Discussion Settings Options

Discussion Settings Options Discussions Discussions is where you will participate in class discussions with your classmates. Once a discussion is posted, every student in the class will be able to read the comments. Once you post

More information

CS 105 Lecture 5 Logical Operators; Switch Statement. Wed, Feb 16, 2011, 5:11 pm

CS 105 Lecture 5 Logical Operators; Switch Statement. Wed, Feb 16, 2011, 5:11 pm CS 105 Lecture 5 Logical Operators; Switch Statement Wed, Feb 16, 2011, 5:11 pm 1 16 quizzes taken Average: 37.9 Median: 40.5 Quiz 1 Results 16 Scores: 45 45 44 43 43 42 41 41 40 36 36 36 34 31 28 21 Avg

More information

Chapter 5 : Repetition (pp )

Chapter 5 : Repetition (pp ) Page 1 of 41 Printer Friendly Version User Name: Stephen Castleberry email Id: scastleberry@rivercityscience.org Book: A First Book of C++ 2007 Cengage Learning Inc. All rights reserved. No part of this

More information

The NESTED Procedure (Chapter)

The NESTED Procedure (Chapter) SAS/STAT 9.3 User s Guide The NESTED Procedure (Chapter) SAS Documentation This document is an individual chapter from SAS/STAT 9.3 User s Guide. The correct bibliographic citation for the complete manual

More information

Chapter 4: Control structures. Repetition

Chapter 4: Control structures. Repetition Chapter 4: Control structures Repetition Loop Statements After reading and studying this Section, student should be able to Implement repetition control in a program using while statements. Implement repetition

More information

Logging into the dashboard:

Logging into the dashboard: Web Data Entry Tool Training guide 2018 MIPS reporting Logging into the dashboard: Please click on the link (https://dataderm.aad.org/dashboard/login.aspx) to be taken to the dashboard. Login to the screen

More information

AURA ACADEMY SAS TRAINING. Opposite Hanuman Temple, Srinivasa Nagar East, Ameerpet,Hyderabad Page 1

AURA ACADEMY SAS TRAINING. Opposite Hanuman Temple, Srinivasa Nagar East, Ameerpet,Hyderabad Page 1 SAS TRAINING SAS/BASE BASIC THEORY & RULES ETC SAS WINDOWING ENVIRONMENT CREATION OF LIBRARIES SAS PROGRAMMING (BRIEFLY) - DATASTEP - PROC STEP WAYS TO READ DATA INTO SAS BACK END PROCESS OF DATASTEP INSTALLATION

More information

Notifications Teacher Training Guide

Notifications Teacher Training Guide Notifications Teacher Training Guide Software Answers, Inc. 6770 Snowville Rd., Suite 200 Brecksville, Ohio 44141 www.progressbook.com www.software-answers.com 2018 Software Answers, Inc. All Rights Reserved.

More information

Repetition and Loop Statements Chapter 5

Repetition and Loop Statements Chapter 5 Repetition and Loop Statements Chapter 5 1 Chapter Objectives To understand why repetition is an important control structure in programming To learn about loop control variables and the three steps needed

More information

Lab 5 - Repetition. September 26, 2018

Lab 5 - Repetition. September 26, 2018 Lab 5 - Repetition September 26, 2018 1 ME 30 Lab 5 - Repetition ME 30 ReDev Team Description and Summary: This lab introduces the programming concept of repetition, also called looping, where some operations

More information

Starting SAS. 2. Click START, ALL PROGRAMS, SAS, and the SAS ICON

Starting SAS. 2. Click START, ALL PROGRAMS, SAS, and the SAS ICON 1 Starting SAS To start SAS 1. Click on the SAS ICON on the desktop, or 2. Click START, ALL PROGRAMS, SAS, and the SAS ICON The result looks like this: 2 Click on Close on the Getting Started With SAS

More information

For Loop. Variations on Format & Specific Examples

For Loop. Variations on Format & Specific Examples For Loop The for loop is an iterative loop. You determine how many times it executes, using 3 expressions and a loop control variable (lcv). The first expression initializes the loop control variable (lcv)

More information

Chapter 4: Control structures

Chapter 4: Control structures Chapter 4: Control structures Repetition Loop Statements After reading and studying this Section, student should be able to Implement repetition control in a program using while statements. Implement repetition

More information

Loops and Files. Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz

Loops and Files. Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Loops and Files Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Chapter Topics o The Increment and Decrement Operators o The while Loop o Shorthand Assignment Operators o The do-while

More information

ODeL Student Pocket Book

ODeL Student Pocket Book ODeL Student Pocket Book ODeL AFRICA INTERNATIONAL UNIVERSITY Vision Statement Christ-Centred Leaders in Africa Educated to Transform God s People and the World. Mission Statement To educate Christ-centred

More information

Lecture 7 Tao Wang 1

Lecture 7 Tao Wang 1 Lecture 7 Tao Wang 1 Objectives In this chapter, you will learn about: Interactive loop break and continue do-while for loop Common programming errors Scientists, Third Edition 2 while Loops while statement

More information

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session:

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session: ALIGARH MUSLIM UNIVERSITY Department of Computer Science Dated: 25-01-2016 JAVA Lab Assignment Course: MCA II nd Semester Academic Session: 2015-2016 CSM-241: Object Oriented Programming Using JAVA Note:

More information

Write a java program to prints the count of odd and even no s entered.

Write a java program to prints the count of odd and even no s entered. Dated: 27-01-2014 ALIGARH MUSLIM UNIVERSITY Department of Computer Science CS-2P1: Object Oriented Programming Using JAVA Java Lab Assignment Course: MCA (Semester-II nd ) Academic Session: 2013-2014 Note:

More information

Quarterly Progress Report (QPR) Instructions for Principal Investigators (PIs)

Quarterly Progress Report (QPR) Instructions for Principal Investigators (PIs) 1. Go to the ICT website (www.ict.illinois.edu) (unless you used the link from the email) 2. Click QPR Login (shown in the image below) 3. Enter username/password. (Follow instructions on website if you

More information

Best Practices for Using the Lessons Tool - Design

Best Practices for Using the Lessons Tool - Design Best Practices for Using the Lessons Tool - Design Overview Please read Lessons Basics before reading this document. This document discusses advanced features of the Lessons tool such as customizing page

More information

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions Introduction to DATA Step Programming SAS Basics II Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step Programming

More information

Statements. Previous Page Next Page. SAS 9.2 Language Reference: Dictionary, Third Edition. Definition of Statements. DATA Step Statements

Statements. Previous Page Next Page. SAS 9.2 Language Reference: Dictionary, Third Edition. Definition of Statements. DATA Step Statements Page 1 of 278 Previous Page Next Page SAS 9.2 Language Reference: Dictionary, Third Edition Statements Definition of Statements DATA Step Statements Global Statements ABORT Statement ARRAY Statement Array

More information

CONDITION CONTROLLED LOOPS. Introduction to Programming - Python

CONDITION CONTROLLED LOOPS. Introduction to Programming - Python CONDITION CONTROLLED LOOPS Introduction to Programming - Python Generating Random Numbers Generating a random integer Sometimes you need your program to generate information that isn t available when you

More information

Test #2 October 8, 2015

Test #2 October 8, 2015 CPSC 1040 Name: Test #2 October 8, 2015 Closed notes, closed laptop, calculators OK. Please use a pencil. 100 points, 5 point bonus. Maximum score 105. Weight of each section in parentheses. If you need

More information

Feature Options: Draft State

Feature Options: Draft State Feature Options: Draft State Published as part of the 03/22/14 Canvas Production Release Notes Originally introduced to Canvas in the 01/27/14 beta release Draft State allows content in Assignments, Quizzes,

More information

Smith ES Science, 8 2nd quarter review

Smith ES Science, 8 2nd quarter review ES Science Grade 8 Smith ES Science, 8 2nd quarter review Smith ES Science, 8 2nd quarter review WAKE COUNTY SCHOOLS 2013-2014 ALL RIGHTS RESERVED Content of this booklet is subject to copyright and restrictions

More information

Honaker BASIC QUIA INSTRUCTIONS How to set up Class Page in QUIA

Honaker BASIC QUIA INSTRUCTIONS How to set up Class Page in QUIA Honaker BASIC QUIA INSTRUCTIONS - 1 - How to set up Class Page in QUIA 1. Go to http://www.quia.com, click on Try it Today then click on get a 30-day free subscription. Fill out the next screens with your

More information

Week 6, Week 7 and Week 8 Analyses of Variance

Week 6, Week 7 and Week 8 Analyses of Variance Week 6, Week 7 and Week 8 Analyses of Variance Robyn Crook - 2008 In the next few weeks we will look at analyses of variance. This is an information-heavy handout so take your time reading it, and don

More information

CS110D: PROGRAMMING LANGUAGE I

CS110D: PROGRAMMING LANGUAGE I CS110D: PROGRAMMING LANGUAGE I Computer Science department Lecture 5&6: Loops Lecture Contents Why loops?? While loops for loops do while loops Nested control structures Motivation Suppose that you need

More information

Multiple-Subscripted Arrays

Multiple-Subscripted Arrays Arrays in C can have multiple subscripts. A common use of multiple-subscripted arrays (also called multidimensional arrays) is to represent tables of values consisting of information arranged in rows and

More information

SAS Workshop. Introduction to SAS Programming. Iowa State University DAY 2 SESSION IV

SAS Workshop. Introduction to SAS Programming. Iowa State University DAY 2 SESSION IV SAS Workshop Introduction to SAS Programming DAY 2 SESSION IV Iowa State University May 10, 2016 Controlling ODS graphical output from a procedure Many SAS procedures produce default plots in ODS graphics

More information

while for do while ! set a counter variable to 0 ! increment it inside the loop (each iteration)

while for do while ! set a counter variable to 0 ! increment it inside the loop (each iteration) Week 7: Advanced Loops while Loops in C++ (review) while (expression) may be a compound (a block: {s) Gaddis: 5.7-12 CS 1428 Fall 2015 Jill Seaman 1 for if expression is true, is executed, repeat equivalent

More information

Please login. Procedures for Data Insight. overview. Take a seat at one of the work stations Login with your HawkID Locate SAS 9.3 in the Start Menu

Please login. Procedures for Data Insight. overview. Take a seat at one of the work stations Login with your HawkID Locate SAS 9.3 in the Start Menu Please login Take a seat at one of the work stations Login with your HawkID Locate SAS 9.3 in the Start Menu Start / All Programs / SAS / SAS 9.3 (English) Make SAS go Raise your hand if you need assistance

More information

1. Go to https://online.national.edu/ 2. Click the link at the bottom that says Please click here for a System Check before you log in.

1. Go to https://online.national.edu/ 2. Click the link at the bottom that says Please click here for a System Check before you log in. Desire 2 Learn User Guide Desire 2 Learn User Guide Using the System Check Quick Link You can use the quick link on the entry page of the online classroom for a general test of your computer s preparedness

More information

Introduction to Statistical Analyses in SAS

Introduction to Statistical Analyses in SAS Introduction to Statistical Analyses in SAS Programming Workshop Presented by the Applied Statistics Lab Sarah Janse April 5, 2017 1 Introduction Today we will go over some basic statistical analyses in

More information

Nature Methods: doi: /nmeth Supplementary Figure 1

Nature Methods: doi: /nmeth Supplementary Figure 1 Supplementary Figure 1 Schematic representation of the Workflow window in Perseus All data matrices uploaded in the running session of Perseus and all processing steps are displayed in the order of execution.

More information

Instructions, Canvas: Basics II Workshop

Instructions, Canvas: Basics II Workshop Create a practice site Instructions, Canvas: Basics II Workshop Use the following information in creating your practice site: 1. Name: practicesite 2. Under settings, hide everything in Navigation Pane

More information

Sorting Pearson Education, Inc. All rights reserved.

Sorting Pearson Education, Inc. All rights reserved. 1 19 Sorting 2 19.1 Introduction (Cont.) Sorting data Place data in order Typically ascending or descending Based on one or more sort keys Algorithms Insertion sort Selection sort Merge sort More efficient,

More information

EGR 102 Introduction to Engineering Modeling. Lab 10A Nested Programming II Iterative Nesting

EGR 102 Introduction to Engineering Modeling. Lab 10A Nested Programming II Iterative Nesting EGR 102 Introduction to Engineering Modeling Lab 10A Nested Programming II Iterative Nesting 1 Overview 1. Nested loops 2. Nested loop: Creating Arrays 3. Nested Loops: 2 Variable functions 4. Nested Loops

More information

Macro Basics. Introduction. Defining and Using Macro Variables. Defining and Using Macros. Macro Parameters. Part 1. Chapter 1. Chapter 2.

Macro Basics. Introduction. Defining and Using Macro Variables. Defining and Using Macros. Macro Parameters. Part 1. Chapter 1. Chapter 2. Part 1 Macro Basics Chapter 1 Chapter 2 Chapter 3 Chapter 4 Introduction Defining and Using Macro Variables Defining and Using Macros Macro Parameters 2 Carpenter s Complete Guide to the SAS Macro Language

More information

Elementary (Intermediate) Reporting in MyEducation BC

Elementary (Intermediate) Reporting in MyEducation BC Elementary (Intermediate) Reporting in MyEducation BC SCHOOL DISTRICT NO 40 (NEW WESTMINSTER) FEBRUARY 5 TH, 2018 Intermediate Report Cards MyEducation BC Before beginning: please ensure that you are using

More information

Contents. The Anatomy of a Moodle Classroom. Course Description:

Contents. The Anatomy of a Moodle Classroom. Course Description: The Anatomy of a Moodle Classroom The Community College of Vermont (CCV) uses Moodle for its learning management system. Course Description: This document is a brief orientation to the requirements and

More information

Contents. About This Book...1

Contents. About This Book...1 Contents About This Book...1 Chapter 1: Basic Concepts...5 Overview...6 SAS Programs...7 SAS Libraries...13 Referencing SAS Files...15 SAS Data Sets...18 Variable Attributes...21 Summary...26 Practice...28

More information

CITI ACCESS AND DIRECTIONS FOR EXTRAMURAL PERFORMERS NEW USERS

CITI ACCESS AND DIRECTIONS FOR EXTRAMURAL PERFORMERS NEW USERS CITI ACCESS AND DIRECTIONS FOR EXTRAMURAL PERFORMERS NEW USERS To access the CITI training program go to: http://www.citiprogram.org. The following directions will assist you as you work through the required

More information

Lasell College s Moodle 3 Student User Guide. Access to Moodle

Lasell College s Moodle 3 Student User Guide. Access to Moodle Access to Moodle The first session of this document will show you how to access your Lasell Moodle course, how to login, and how to logout. 1. The homepage of Lasell Learning Management System Moodle is

More information

An Introduction to Programming with C++ Sixth Edition. Chapter 8 More on the Repetition Structure

An Introduction to Programming with C++ Sixth Edition. Chapter 8 More on the Repetition Structure An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure Objectives Include a posttest loop in pseudocode Include a posttest loop in a flowchart Code a posttest

More information

Using Canvas to take a Class

Using Canvas to take a Class Using Canvas to take a Class Introduction The Canvas Learning Management System (LMS) is used to host a number of classes at Fullerton College. In order to use Canvas you should learn some fundamental

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG 1 Notice Prepare the Weekly Quiz The weekly quiz is for the knowledge we learned in the previous week (both the

More information

Relational and Logical Statements

Relational and Logical Statements Relational and Logical Statements Relational Operators in MATLAB A operator B A and B can be: Variables or constants or expressions to compute Scalars or arrays Numeric or string Operators: > (greater

More information

MAY 29 and MAY 30. What s New? When is it Happening? Here are the new features most relevent to CRC users:

MAY 29 and MAY 30. What s New? When is it Happening? Here are the new features most relevent to CRC users: D2L 10.3 Features Guide How it Affects CRC Users What s New? Here are the new features most relevent to CRC users: Content - Smart Table of Contents Panel Content - External Links Automatically Open in

More information

Chapter 3. Iteration

Chapter 3. Iteration Chapter 3 Iteration Iteration Iteration is the form of program control that allows us to repeat a section of code. For this reason this form of control is often also referred to as repetition. The programming

More information

National Geographic Learning Social Studies Courses Teacher s User Guide

National Geographic Learning Social Studies Courses Teacher s User Guide Table of Contents Logging in to the System... Using the Header Bar... Resources... 5 Navigating the Teacher s Edition... 6 Content Tools... 7 Assignments Assigning Reading and Tests... 9 Using the Gradebook...

More information

Arrays Made Easy: An Introduction to Arrays and Array Processing

Arrays Made Easy: An Introduction to Arrays and Array Processing Arrays Made Easy: An Introduction to Arrays and Array Processing 2nd Dimension SALE_ARRAY {r,1} {r,2} {r,3} {r,4} {r,12} 1st Dimension Sales {1,c} SALES1 SALES2 SALES3 SALES4 SALES12 Variables Expense

More information

Fundamentals of Programming Session 9

Fundamentals of Programming Session 9 Fundamentals of Programming Session 9 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2013 These slides have been created using Deitel s slides Sharif University of Technology Outlines

More information

Generalized Additive Models

Generalized Additive Models Generalized Additive Models Statistics 135 Autumn 2005 Copyright c 2005 by Mark E. Irwin Generalized Additive Models GAMs are one approach to non-parametric regression in the multiple predictor setting.

More information

COMP 250. Lecture 7. Sorting a List: bubble sort selection sort insertion sort. Sept. 22, 2017

COMP 250. Lecture 7. Sorting a List: bubble sort selection sort insertion sort. Sept. 22, 2017 COMP 250 Lecture 7 Sorting a List: bubble sort selection sort insertion sort Sept. 22, 20 1 Sorting BEFORE AFTER 2 2 2 Example: sorting exams by last name Sorting Algorithms Bubble sort Selection sort

More information

Computers in Engineering COMP 208 Repetition and Storage Michael A. Hawker. Repetition. A Table of Values 9/20/2007

Computers in Engineering COMP 208 Repetition and Storage Michael A. Hawker. Repetition. A Table of Values 9/20/2007 Computers in Engineering COMP 208 Repetition and Storage Michael A. Hawker Repetition To fully take advantage of the speed of a computer, we must be able to instruct it to do a lot of work The program

More information

Introduction to DATA Step Programming: SAS Basics II. Susan J. Slaughter, Avocet Solutions

Introduction to DATA Step Programming: SAS Basics II. Susan J. Slaughter, Avocet Solutions Introduction to DATA Step Programming: SAS Basics II Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step

More information

Matrix Tutorial. Creating and Editing a Student Profile

Matrix Tutorial. Creating and Editing a Student Profile Matrix Tutorial Creating and Editing a Student Profile Contents Matrix Best Practice... 1 Creating a Student Profile Asset... 2 Details Screen... 6 Adding a Profile Image... 6 Content Screen... 8 Content

More information

The Canvas Teacher App can be downloaded from the Google Play Store and the Apple App Store.

The Canvas Teacher App can be downloaded from the Google Play Store and the Apple App Store. Canvas Teacher App Canvas Teacher allows teachers to facilitate their courses on the go, both inside and outside the classroom. This app provides quick access to three of the most frequent course facilitation

More information

Lab 09: Advanced SQL

Lab 09: Advanced SQL CIS395 - BMCC - Spring 2018 04/25/2018 Lab 09: Advanced SQL A - Use Simple Loops with EXIT Conditions In this exercise, you use the EXIT condition to terminate a simple loop, and a special variable, v_counter,

More information

Arrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming

Arrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming Arrays: Higher Dimensional Arrays CS0007: Introduction to Computer Programming Review If the == operator has two array variable operands, what is being compared? The reference variables held in the variables.

More information

Using an ICPSR set-up file to create a SAS dataset

Using an ICPSR set-up file to create a SAS dataset Using an ICPSR set-up file to create a SAS dataset Name library and raw data files. From the Start menu, launch SAS, and in the Editor program, write the codes to create and name a folder in the SAS permanent

More information

Orientation Easy Reference

Orientation Easy Reference Orientation Easy Reference How to complete the online Institutional Orientation course Table of Contents Getting Started... 3 Finishing up... 4 Step 1: Check your scores... 4 Step 2: Retake quizzes...

More information

Student User Guide. Introduction

Student User Guide. Introduction Student User Guide Introduction About the Course Navigator This web-based learning management system enhances students understanding of core course content through flashcards, quizzes, activities, and

More information

How to Import from Commons

How to Import from Commons How to Import from Commons How to Search for a Resource on Canvas Commons A resource in Canvas Commons can be a Course, Module, Assignment, Quiz, Discussion, Page, Document, Video, Audio or Image file.

More information

Statements with the Same Function in Multiple Procedures

Statements with the Same Function in Multiple Procedures 67 CHAPTER 3 Statements with the Same Function in Multiple Procedures Overview 67 Statements 68 BY 68 FREQ 70 QUIT 72 WEIGHT 73 WHERE 77 Overview Several statements are available and have the same function

More information

Student Guide to elearn

Student Guide to elearn Student Guide to elearn 1 Course Navigation Student Guide to elearn When you first enter a course, you will see the Course Home page. Here you will find directions on how to get started in your specific

More information

CST112 Looping Statements Page 1

CST112 Looping Statements Page 1 CST112 Looping Statements Page 1 1 2 3 4 5 Processing: Looping Statements CST112 Algorithms Procedure for solving problem: 1. Actions to be executed 2. Order in which actions are executed order of elements

More information

Access Process for New Faculty Hires

Access Process for New Faculty Hires Access Process for New Faculty Hires This document explains the process that relate to new faculty hires and how they receive access in PeopleSoft, CougarNet, and Blackboard, our three most critical systems.

More information

STUDENT LESSON A12 Iterations

STUDENT LESSON A12 Iterations STUDENT LESSON A12 Iterations Java Curriculum for AP Computer Science, Student Lesson A12 1 STUDENT LESSON A12 Iterations INTRODUCTION: Solving problems on a computer very often requires a repetition of

More information

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM options pagesize=53 linesize=76 pageno=1 nodate; proc format; value $stcktyp "1"="Growth" "2"="Combined" "3"="Income"; data invstmnt; input stcktyp $ perform; label stkctyp="type of Stock" perform="overall

More information