Lab 1. Introduction to R & SAS. R is free, open-source software. Get it here:

Size: px
Start display at page:

Download "Lab 1. Introduction to R & SAS. R is free, open-source software. Get it here:"

Transcription

1 Lab 1. Introduction to R & SAS R is free, open-source software. Get it here: for your own computer Using R like a calculator Open R and type these commands into the R Console window. What you type is red, what the R software package returns is blue. If you enter something wrong or if you want to recall a previous command, use the and keys to scroll through your command history. You can edit recalled commands. To make it easier for you to identify what R commands are, I highlight them with courier font. To further distinguish arbitrary variable names and numbers, I highlight the arbitrary variable names and numbers in bold. You will have to modify those bolded names and numbers in order to adapt the code you learn here to your own data and problems in the future. Working with numbers: 2+3 A=2+3 A a (oops, R is case sensitive) B=7 A+B C=A+B C Some mathematical functions: sqrt(c) C^3 log(c) log(c,10) abs(-5) You can get help for any R function:?log?boxplot Working with vectors: X=c(1,4,3,5,7) Y=c(5,7,9,4,8) mean(x) sd(x) X*10 Z=Y+3 Z boxplot(x,y,z) t.test(x,y) t.test(x,z) Working with matrices (tables): K=as.data.frame(cbind(X,Y,Z)) X=X*10 K (oops, nothing happened?) K$X=K$X*10 t(k) plot(k) 1.2. Working efficiently with R It s not really convenient to work in R like this. You don t want to type your raw data into the R console, and you want to have an editable record of your statistical analysis or graphics scripts. In this section, we learn a basic setup that allows you to write and save R programs as text-files, and load and save data from a working directory of your choice. Make a folder, where all your files for a particular R session are saved: In Windows Explorer, navigate to a place you like, then right click and choose New > Folder, and name it (e.g.: C:\Lab1 ). Create a Workspace Shortcut to R, which sets the new folder (C:\Lab1) as the working directory: If R is still open, close the program and cancel all warning messages and save prompts. Now re-open R, then save an empty workspace to your new directory: In the menu, go to File > Save Workspace > Navigate to your new folder C:\Lab1 > hit Save and choose the filename StartR.RData (Note that you need to include the extension.rdata in the file name!) Close R, then re-open R by double-clicking the StartR file in your C:\Lab1 directory.

2 Create a script file with your R code: In the menu, go to File > New script In the new R-Editor window, write a few lines of code, for example: X=c(1,4,3,5,7) mean(x) Now save this script by hitting the save button: Choose a file name and add the.r extension, e.g. Script1.r, and by default this should save directly into your working directory C:\Lab1. Close R. OK, while this may seem a little convoluted, this set-up is actually very convenient. Opening R with StartR, will set the working directory to the location of the StartR file. You never have to worry about specifying working directories in your code and you can move files and folders to different computers without any problems. On every Windows-based computer that has R installed, you can just double-click the StartR file, load the script, and run your code. You can also just quickly look at your code on any computer by opening the text file Script1.r in Notepad or Wordpad. In Windows explorer, right-click Script1.r, choose Open with, then select Wordpad under Other Programs. If you put a checkmark at Always use the selected program, you can open.r files by just double-clicking in the future. Note that we will never use the workspace functionality of R. Simply ignore the save workspace? prompts. Load and execute your script file in 10 seconds: Double-click the StartR file to open R Hit the Open File button, choose Script1.r and hit the Open button. Place your cursor anywhere in the first line of your script and hit Ctrl-R for Run (hold the Ctrl key and press the R key) The cursor automatically jumps to the next line and you can hit Ctrl-R again to execute the next command You can also highlight a larger section of the script (or all of it) and execute it with Ctrl-R Of course, you can edit your script in R and re-save it: Make some changes Make sure that the script-window is active (click on the script window if not) Choose File > Save or Save as.. to a new file 1.3. Importing and analyzing data in R There are several ways to import data to R, but I highly recommend using Excel-generated CSV files (Comma Separated Values). There are several advantages to CSV files: (1) they are plain text files, which are good for long-term data archiving, (2) almost any software package (including R and SAS) can import them error-free, and (3) you can double-click CSV files to quickly open them in Excel for editing. Create a CSV file in Excel: Open Excel and enter the dataset on the right: Save it as an Excel spreadsheet in your folder C:\Lab1\data.xls To save as a CSV file, chose Save as From the drop-down box Save as type choose CSV (Comma delimited) (.csv) Put it in the same location C:\Lab1\data.csv Dismiss all warning dialogues and close Excel Import data to R for analysis: If you closed R, re-open it by double-clicking StartR Create a new script file by choosing File > New Script Save it with a new name File > Save as > C:\Lab1\correlation.r X Y Z

3 Now let s enter some code (and re-save): dat=read.csv( data.csv ) fix(dat) head(dat) str(dat) attach(dat) cor(x,y) lm(y~x) plot(y~x) abline(lm(y~x)) plot(dat) Execute your code line by line with Ctrl-R: fix()allows you to open the spreadsheet to see if the import worked fine. You can also edit a cell by double-clicking it. You need to close the spreadsheet window before you can continue executing code. head()and str() are alternate and perhaps better ways to check your import. head()is fast and does not stop the code execution, while str() gives you more information about the imported variable types, hinting at potential errors. attach()let s R know, that this is the data table that we are working with right now, otherwise it won t find the variables X, Y and Z. cor() returns the Pearson correlation coefficient for two variables. lm() returns the regression equation. The symbol ~ always means as a function of. plot(x~y) give us a scatter plot of Y as a function of X. abline() adds a function to the scatter plot. plot(dat) creates a scatter plot for all variables in the data table dat Working with your own data We will normally use CSV file formats in this course, and I recommend that you do the same for your own datasets. Below are some useful rules that help with file management for this course, and for your own projects. Always keep your original spreadsheet (typically an Excel file) and include documentation in this file (where did the data come from? when was it collected? what are the rows, columns, variables?) Create a simplified CSV for analysis, which just has a single header row with simple variable names followed by data rows (no documentation or comments, no blank rows or columns). Save this CSV file with the same name in the same folder. In the CSV file, variable names can only contain letters, numbers, and underscores (A-Z, a-z, 0-9, _ ). Don t use spaces or symbols. Variable names should be no more than 8 characters long and must start with a letter. For clarity, I find it useful to choose variable names that have ALL UPPER CASE letters and use lower case letters for other R code. R and SAS may have trouble reading CSV files that were generated by other programs. In this case open and re-save the CSV files in Excel Always put all the files you need for a particular analysis into one folder with a good descriptive name. Don t accumulate too many files in a folder, but rather make new folders for different purposes (a folder may for example contain the files: StartR.RData, data.xls, data.csv, anova.r, summary.r, graphics.r).

4 1.5. Importing other delimited text files The read.csv() function is actually just one specific case of the more general read.table() function. You can specify the delimiter (for example, in Europe the semicolon rather than the comma is a more popular delimiter). Also, the tab-delimited text-file is quite popular. The general syntax is the following. dat1=read.table("filename.txt", header=true, sep=";", skip=0) Header=TRUE means that you have a header row that contains the variable names. If that is not the case, set it to Header=FALSE. If you don t have variable names, you can add them in with a second command after the read.table() command, e.g.: names(dat1)=c("varname1","varname2","varname3") sep=";" determines what character determines column breaks, in this case a semicolon rather than a comma. For tab-delimited text files use sep="\t". skip=0 means that your data starts right after the header row. If there are several rows with comments, you can skip over them by specifying the number of rows to skip, e.g. skip=2 Try to execute the command?read.table for many more options that may at some point be of interest See if you can properly import the file aspen.txt, downloadable from the course website Importing data in other formats Unfortunately, researchers work with a whole range of different data formats that you may need to import into R for analysis. Normally, the best way to handle this is to use the Text Import Whizard of Excel, available from the Open file dialogue. However, sometimes this is not possible because the file may be too large to be opened in Excel, or there may be too many files that you would have to open and re-save as CSVs. For these cases, we can use slightly different import routines directly into R. A common format for data tables are DBF files developed for dbase II software, which was the first widely used database management system for microcomputers. It is still widely used due to its adoption by ESRI in its popular ArcView and ArcGIS software. To import this file format, you need to install an extension for the R base package. From the menu in R, choose Packages, then Install packages. Next, you get a pop-up window, where you can choose a download site. They have all exactly the same contents, so you may pick something nearby, for example Canada (BC). Then, you get a pop-up window, where you can choose a package. Scroll down and double-click foreign, for an extension package that handles DBF files among others. Now you are ready, to import (and export) DBF files into R. The first command loads the extension package that we have just installed into the computer memory, then you can import and export DBF files with the subsequent command. Download the aspen.dbf data from the course website. library(foreign) dat2=read.dbf("aspen.dbf") write.dbf(dat2,"aspen2.dbf") If you need to import and export other exotic formats, go to This is essentially a version of Google restricted to the content of the R software project. If you search for dbf, you will see that the extension package foreign is the first hit, but there are many other options too. There is virtually nothing that R can t import via various extension packages developed by a huge open-source community.

5 1.7. Importing and analyzing data in SAS You can t use SAS like a calculator, but running script files works similar as in R. Instead of the extension.r, SAS scripts have the extension.sas, but they are really just text files. You can always right-click the file and choose Open with to see what s in the file with Notepad or Wordpad even if you don t have SAS installed on a particular computer. The import code for CSVs in SAS is a little bit more complicated and you also have to specify the exact directory path. This is a pain if you move your files to other computers, or edit your directory names. Anyway, here is some code to try out: Creating a script file for SAS: Start SAS from the start menu by either navigating to or searching for SAS 9.3 (English). When SAS opens you see three windows (file navigation on the left, the log window top right, and the script window bottom right). It s a good habit to first select and save that script window before you start working. If you made changes to the script, the script window will indicate this with a * next to the window header, and you can just hit the save button to save any changes. Enter this code to import a file (and customize what I highlighted in bold as needed): proc import out=dat datafile="c:\lab1\data.csv" dbms=csv replace; getnames=yes; datarow=2; guessingrows= ; run; Select the script window with the mouse, and hit the run button to execute the script. The log window will point out any errors, so do keep an eye on it while things are running. You can see the imported file, by double-clicking on the left panel Libraries > Work > DAT Close the DAT spreadsheet after confirming that the import went OK (otherwise code that uses this data table will not execute, just as in R) Always use the import code above in SAS and never use the import wizard from the file menu. For most file formats, including CSV files, the import wizard is unfortunately very unreliable in SAS. This stems from the fact that SAS will only look at the first couple of rows to determine the variable type. By setting the Guessingrows parameter to a very large number (more than the number of rows in a data table), that problem is solved. Some sample analysis SAS: Add this to your script. proc reg data=dat; model Y=X; run; proc corr data=dat; var X Y Z; run; proc gplot data=dat; plot X*Y; run; As in R, you can execute individual lines or sections by highlighting them with the mouse, and then hitting the run button. If you don t select a section, all the code is executed in SAS (in R, just a single line is executed). Watch the Log window for errors (in red). Use the bottom bar to navigate between Editor, Log, and Results windows. If you close a window, you can re-open it from the View menu.

Lab 1: Getting started with R and RStudio Questions? or

Lab 1: Getting started with R and RStudio Questions? or Lab 1: Getting started with R and RStudio Questions? david.montwe@ualberta.ca or isaacren@ualberta.ca 1. Installing R and RStudio To install R, go to https://cran.r-project.org/ and click on the Download

More information

3. Data Tables & Data Management

3. Data Tables & Data Management 3. Data Tables & Data Management In this lab, we will learn how to create and manage data tables for analysis. We work with a very simple example, so it is easy to see what the code does. In your own projects

More information

Chapter 2 The SAS Environment

Chapter 2 The SAS Environment Chapter 2 The SAS Environment Abstract In this chapter, we begin to become familiar with the basic SAS working environment. We introduce the basic 3-screen layout, how to navigate the SAS Explorer window,

More information

Word: Print Address Labels Using Mail Merge

Word: Print Address Labels Using Mail Merge Word: Print Address Labels Using Mail Merge No Typing! The Quick and Easy Way to Print Sheets of Address Labels Here at PC Knowledge for Seniors we re often asked how to print sticky address labels in

More information

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program. Using Excel 2007 This is only a brief overview that highlights some of the useful points in a spreadsheet program. 1. Input of data - Generally you should attempt to put the independent variable on the

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Assignment 0. Nothing here to hand in

Assignment 0. Nothing here to hand in Assignment 0 Nothing here to hand in The questions here have solutions attached. Follow the solutions to see what to do, if you cannot otherwise guess. Though there is nothing here to hand in, it is very

More information

CSV Roll Documentation

CSV Roll Documentation CSV Roll Documentation Version 1.1 March 2015 INTRODUCTION The CSV Roll is designed to display the contents of a Microsoft Excel worksheet in a Breeze playlist. The Excel worksheet must be exported as

More information

Business Process Procedures

Business Process Procedures Business Process Procedures 14.40 MICROSOFT EXCEL TIPS Overview These procedures document some helpful hints and tricks while using Microsoft Excel. Key Points This document will explore the following:

More information

Gradebook Export/Import Instructions

Gradebook Export/Import Instructions Gradebook Export/Import Instructions Introduction Canvas gives the option to export the gradebook to a CSV file. You can open this file in a spreadsheet program and add or change grades, add columns and

More information

EXCEL BASICS: MICROSOFT OFFICE 2010

EXCEL BASICS: MICROSOFT OFFICE 2010 EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Graphing on Excel. Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version):

Graphing on Excel. Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version): Graphing on Excel Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version): The first step is to organize your data in columns. Suppose you obtain

More information

Code Plug Management: Contact List Import/Export. Version 1.0, Dec 16, 2015

Code Plug Management: Contact List Import/Export. Version 1.0, Dec 16, 2015 Code Plug Management: Contact List Import/Export Version 1.0, Dec 16, 2015 Background This presentation will show how to update and maintain contact lists in the CS750 The following applications will be

More information

Identifying Updated Metadata and Images from a Content Provider

Identifying Updated Metadata and Images from a Content Provider University of Iowa Libraries Staff Publications 4-8-2010 Identifying Updated Metadata and Images from a Content Provider Wendy Robertson University of Iowa 2010 Wendy C Robertson Comments Includes presenter's

More information

Excel Level 1

Excel Level 1 Excel 2016 - Level 1 Tell Me Assistant The Tell Me Assistant, which is new to all Office 2016 applications, allows users to search words, or phrases, about what they want to do in Excel. The Tell Me Assistant

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Introduction This handout briefly outlines most of the basic uses and functions of Excel that we will be using in this course. Although Excel may be used for performing statistical

More information

Working with Mailbox Manager

Working with Mailbox Manager Working with Mailbox Manager A user guide for Mailbox Manager supporting the Message Storage Server component of the Avaya S3400 Message Server Mailbox Manager Version 5.0 February 2003 Copyright 2003

More information

Microsoft Excel 2007

Microsoft Excel 2007 Learning computers is Show ezy Microsoft Excel 2007 301 Excel screen, toolbars, views, sheets, and uses for Excel 2005-8 Steve Slisar 2005-8 COPYRIGHT: The copyright for this publication is owned by Steve

More information

Graphics #1. R Graphics Fundamentals & Scatter Plots

Graphics #1. R Graphics Fundamentals & Scatter Plots Graphics #1. R Graphics Fundamentals & Scatter Plots In this lab, you will learn how to generate customized publication-quality graphs in R. Working with R graphics can be done as a stepwise process. Rather

More information

How to use Excel Spreadsheets for Graphing

How to use Excel Spreadsheets for Graphing How to use Excel Spreadsheets for Graphing 1. Click on the Excel Program on the Desktop 2. You will notice that a screen similar to the above screen comes up. A spreadsheet is divided into Columns (A,

More information

1 Introduction to Using Excel Spreadsheets

1 Introduction to Using Excel Spreadsheets Survey of Math: Excel Spreadsheet Guide (for Excel 2007) Page 1 of 6 1 Introduction to Using Excel Spreadsheets This section of the guide is based on the file (a faux grade sheet created for messing with)

More information

ST Lab 1 - The basics of SAS

ST Lab 1 - The basics of SAS ST 512 - Lab 1 - The basics of SAS What is SAS? SAS is a programming language based in C. For the most part SAS works in procedures called proc s. For instance, to do a correlation analysis there is proc

More information

Basics of Stata, Statistics 220 Last modified December 10, 1999.

Basics of Stata, Statistics 220 Last modified December 10, 1999. Basics of Stata, Statistics 220 Last modified December 10, 1999. 1 Accessing Stata 1.1 At USITE Using Stata on the USITE PCs: Stata is easily available from the Windows PCs at Harper and Crerar USITE.

More information

Microsoft Word 2010 Intermediate

Microsoft Word 2010 Intermediate Microsoft Word 2010 Intermediate Agenda 1. Welcome, Introduction, Sign-in 2. Presentation 3. a. Advanced Formatting i. Review: Use Select All to change alignment, font style, spacing ii. Headers and Footers

More information

Creating and Displaying Multi-Layered Cross Sections in Surfer 11

Creating and Displaying Multi-Layered Cross Sections in Surfer 11 Creating and Displaying Multi-Layered Cross Sections in Surfer 11 The ability to create a profile in Surfer has always been a powerful tool that many users take advantage of. The ability to combine profiles

More information

Word - Basics. Course Description. Getting Started. Objectives. Editing a Document. Proofing a Document. Formatting Characters. Formatting Paragraphs

Word - Basics. Course Description. Getting Started. Objectives. Editing a Document. Proofing a Document. Formatting Characters. Formatting Paragraphs Course Description Word - Basics Word is a powerful word processing software package that will increase the productivity of any individual or corporation. It is ranked as one of the best word processors.

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB built-in functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos,

More information

Use signatures in Outlook 2010

Use  signatures in Outlook 2010 Use e-mail signatures in Outlook 2010 Quick Reference Card Download and use a signature template Note This procedure will take you away from this page. If necessary, print this page before you follow these

More information

Stata: A Brief Introduction Biostatistics

Stata: A Brief Introduction Biostatistics Stata: A Brief Introduction Biostatistics 140.621 2005-2006 1. Statistical Packages There are many statistical packages (Stata, SPSS, SAS, Splus, etc.) Statistical packages can be used for Analysis Data

More information

Excel Primer CH141 Fall, 2017

Excel Primer CH141 Fall, 2017 Excel Primer CH141 Fall, 2017 To Start Excel : Click on the Excel icon found in the lower menu dock. Once Excel Workbook Gallery opens double click on Excel Workbook. A blank workbook page should appear

More information

Intro to Excel. To start a new workbook, click on the Blank workbook icon in the middle of the screen.

Intro to Excel. To start a new workbook, click on the Blank workbook icon in the middle of the screen. Excel is a spreadsheet application that allows for the storing, organizing and manipulation of data that is entered into it. Excel has variety of built in tools that allow users to perform both simple

More information

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Contents 1 Introduction to Using Excel Spreadsheets 2 1.1 A Serious Note About Data Security.................................... 2 1.2

More information

CSSCR Excel Intermediate 4/13/06 GH Page 1 of 23 INTERMEDIATE EXCEL

CSSCR Excel Intermediate 4/13/06 GH Page 1 of 23 INTERMEDIATE EXCEL CSSCR Excel Intermediate 4/13/06 GH Page 1 of 23 INTERMEDIATE EXCEL This document is for those who already know the basics of spreadsheets and have worked with either Excel for Windows or Excel for Macintosh.

More information

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming using familiar mathematical notation The name Matlab stands

More information

GUARDTOOL IMPORTER ADDENDUM

GUARDTOOL IMPORTER ADDENDUM EPI Suite 6.x GUARDTOOL IMPORTER ADDENDUM 1. Importing text files (*.txt,.csv) and Excel files (.xls) with the Jet Engine If the files that you want to import are in the list of the Jet Engine drivers

More information

DocumentDirect for Windows (DDW) Current version 4.4 (white screen)

DocumentDirect for Windows (DDW) Current version 4.4 (white screen) DocumentDirect for Windows (DDW) Current version 4.4 (white screen) The basics how to open, navigate and how to export & save your DocumentDirect report to excel Prepared by Kittson, Norman, Roseau Counties

More information

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction In this exercise, we will learn how to reorganize and reformat a data

More information

1. Setup Everyone: Mount the /geobase/geo5215 drive and add a new Lab4 folder in you Labs directory.

1. Setup Everyone: Mount the /geobase/geo5215 drive and add a new Lab4 folder in you Labs directory. L A B 4 E X C E L For this lab, you will practice importing datasets into an Excel worksheet using different types of formatting. First, you will import data that is nicely organized at the source. Then

More information

Chapter 5: Compatibility of Data Files

Chapter 5: Compatibility of Data Files Importing data from other format Files Chapter 5: Compatibility of Data Files Importing Text Files Creating a translation structure Example. Import 'EmployeePayroll.txt' as 'EmployeePayroll.mb' Importing

More information

Intro To Excel Spreadsheet for use in Introductory Sciences

Intro To Excel Spreadsheet for use in Introductory Sciences INTRO TO EXCEL SPREADSHEET (World Population) Objectives: Become familiar with the Excel spreadsheet environment. (Parts 1-5) Learn to create and save a worksheet. (Part 1) Perform simple calculations,

More information

ABBYY FineReader 14. User s Guide ABBYY Production LLC. All rights reserved.

ABBYY FineReader 14. User s Guide ABBYY Production LLC. All rights reserved. ABBYY FineReader 14 User s Guide 2017 ABBYY Production LLC All rights reserved Information in this document is subject to change without notice and does not bear any commitment on the part of ABBYY The

More information

Excel to R and back 1

Excel to R and back 1 Excel to R and back 1 The R interface in RegressIt allows the user to transfer data from an Excel file to a new data frame in RStudio, load packages, and run regression models with customized table and

More information

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Chemistry 30 Tips for Creating Graphs using Microsoft Excel Chemistry 30 Tips for Creating Graphs using Microsoft Excel Graphing is an important skill to learn in the science classroom. Students should be encouraged to use spreadsheet programs to create graphs.

More information

Exploring extreme weather with Excel - The basics

Exploring extreme weather with Excel - The basics Exploring extreme weather with Excel - The basics These activities will help to develop your data skills using Excel and explore extreme weather in the UK. This activity introduces the basics of using

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O

Stat 302 Statistical Software and Its Applications SAS: Data I/O Stat 302 Statistical Software and Its Applications SAS: Data I/O Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 33 Getting Data Files Get the following data sets from the

More information

5b. Descriptive Statistics - Part II

5b. Descriptive Statistics - Part II 5b. Descriptive Statistics - Part II In this lab we ll cover how you can calculate descriptive statistics that we discussed in class. We also learn how to summarize large multi-level databases efficiently,

More information

A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA

A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA ABSTRACT The SAS system running in the Microsoft Windows environment contains a multitude of tools

More information

How to Import Part Numbers to Proman

How to Import Part Numbers to Proman How to Import Part Numbers to Proman This is a brief document that outlines how to take an Excel spreadsheet and either load new parts numbers into Proman or update data on existing part numbers. Before

More information

6. Essential Spreadsheet Operations

6. Essential Spreadsheet Operations 6. Essential Spreadsheet Operations 6.1 Working with Worksheets When you open a new workbook in Excel, the workbook has a designated number of worksheets in it. You can specify how many sheets each new

More information

History, installation and connection

History, installation and connection History, installation and connection The men behind our software Jim Goodnight, CEO SAS Inc Ross Ihaka Robert Gentleman (Duncan Temple Lang) originators of R 2 / 75 History SAS From late 1960s, North Carolina

More information

Microsoft Word Advanced Skills

Microsoft Word Advanced Skills It s all about readability. Making your letter, report, article or whatever, easy and less taxing to read. Who wants to read page after page of boring text the same font, the same size, separated only

More information

Code::Blocks Student Manual

Code::Blocks Student Manual Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of

More information

using cells to create dynamic formulas

using cells to create dynamic formulas excel formulas A forumla is nothing more than an equation that you write up. In Excel a typical formula might contain cells, constants, and even functions. Here is an example Excel formula that we have

More information

Introduction to R Commander

Introduction to R Commander Introduction to R Commander 1. Get R and Rcmdr to run 2. Familiarize yourself with Rcmdr 3. Look over Rcmdr metadata (Fox, 2005) 4. Start doing stats / plots with Rcmdr Tasks 1. Clear Workspace and History.

More information

Using Audacity for Audio-Text Synchronization

Using Audacity for Audio-Text Synchronization Using Audacity for Audio-Text Synchronization Reading App Builder: Using Audacity for Audio-Text Synchronization 2017, SIL International Last updated: 5 December 2017 You are free to print this manual

More information

Module 1: Introduction RStudio

Module 1: Introduction RStudio Module 1: Introduction RStudio Contents Page(s) Installing R and RStudio Software for Social Network Analysis 1-2 Introduction to R Language/ Syntax 3 Welcome to RStudio 4-14 A. The 4 Panes 5 B. Calculator

More information

Tutorial 1 Importing Data

Tutorial 1 Importing Data Tutorial 1 Importing Data Welcome to this tutorial in which we will look at how to import raw tire data into OptimumT. In this tutorial you will learn how to: 1. Loading files 2. Using Import Templates

More information

Interfacing with MS Office Conference 2017

Interfacing with MS Office Conference 2017 Conference 2017 Session Description: This session will detail procedures for importing/exporting data between AeriesSIS Web Version/AeriesSIS Client Version and other software packages, such as word processing

More information

1. What specialist uses information obtained from bones to help police solve crimes?

1. What specialist uses information obtained from bones to help police solve crimes? Mathematics: Modeling Our World Unit 4: PREDICTION HANDOUT VIDEO VIEWING GUIDE H4.1 1. What specialist uses information obtained from bones to help police solve crimes? 2.What are some things that can

More information

Workshop. Import Workshop

Workshop. Import Workshop Import Overview This workshop will help participants understand the tools and techniques used in importing a variety of different types of data. It will also showcase a couple of the new import features

More information

NAME: BEST FIT LINES USING THE NSPIRE

NAME: BEST FIT LINES USING THE NSPIRE NAME: BEST FIT LINES USING THE NSPIRE For this portion of the activity, you will be using the same data sets you just completed where you visually estimated the line of best fit..) Load the data sets into

More information

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com, info@nicelabel.com English Edition Rev-0910 2009 Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com Head Office Euro Plus d.o.o. Ulica Lojzeta Hrovata

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB What you will learn The most important commands (from my view) Writing scripts (.m files) Defining MATLAB variables Matrix/array operations Importing and extracting data 2D plots

More information

Introduction to Statistics using R/Rstudio

Introduction to Statistics using R/Rstudio Introduction to Statistics using R/Rstudio R and Rstudio Getting Started Assume that R for Windows and Macs already installed on your laptop. (Instructions for installations sent) R on Windows R on MACs

More information

Chapter 3 Using Styles and Templates

Chapter 3 Using Styles and Templates Getting Started Guide Chapter 3 Using Styles and Templates Using consistent formatting in your documents Copyright This document is Copyright 2010 2014 by the LibreOffice Documentation Team. Contributors

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Table of Contents The Excel Window... 2 The Formula Bar... 3 Workbook View Buttons... 3 Moving in a Spreadsheet... 3 Entering Data... 3 Creating and Renaming Worksheets... 4 Opening

More information

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3. Installing Notepad++

Notepad++  The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3. Installing Notepad++ Notepad++ The COMPSCI 101 Text Editor for Windows The text editor that we will be using in the Computer Science labs for creating our Python programs is called Notepad++ and is freely available for the

More information

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21 Reference Guide Adding a Generic File Store - Importing From a Local or Network Folder Page 1 of 21 Adding a Generic File Store TABLE OF CONTENTS Background First Things First The Process Creating the

More information

Getting Started Guide. Chapter 3 Using Styles and Templates

Getting Started Guide. Chapter 3 Using Styles and Templates Getting Started Guide Chapter 3 Using Styles and Templates Copyright This document is Copyright 2010 by its contributors as listed below. You may distribute it and/or modify it under the terms of either

More information

Getting Started Guide. Chapter 3 Using Styles and Templates

Getting Started Guide. Chapter 3 Using Styles and Templates Getting Started Guide Chapter 3 Using Styles and Templates Copyright This document is Copyright 2005 2009 by its contributors as listed in the section titled Authors. You may distribute it and/or modify

More information

How to Mail Merge PDF Documents

How to Mail Merge PDF Documents How to Mail Merge PDF Documents A step-by-step guide to creating personalized documents using AutoMailMerge plug-in for Adobe Acrobat Table of Contents What is a mail merge?...2 What do I need to start?...2

More information

An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences. Scott C Merrill. September 5 th, 2012

An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences. Scott C Merrill. September 5 th, 2012 An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences Scott C Merrill September 5 th, 2012 Chapter 2 Additional help tools Last week you asked about getting help on packages.

More information

Introduction to Microsoft Excel 2007

Introduction to Microsoft Excel 2007 Introduction to Microsoft Excel 2007 Microsoft Excel is a very powerful tool for you to use for numeric computations and analysis. Excel can also function as a simple database but that is another class.

More information

SomaticView Version 1.0

SomaticView Version 1.0 SomaticView Version 1.0 User's Guide Technology that counts This page was intentionally left blank SomaticView A part of the NucleoCounter SCC-100 system Manual No. 991-0201 (English) Version 1.0 March

More information

Table of Contents. Part I How do I... Part II Zetafax Client. Foreword. 3 Advanced tasks. 1 Menu options. Annotate a fax? View a text message?

Table of Contents. Part I How do I... Part II Zetafax Client. Foreword. 3 Advanced tasks. 1 Menu options. Annotate a fax? View a text message? I Table of Contents Foreword 0 1 Part I How do I... 1 Zetafax Client... actions 2 Send a fax?... Specify options... when sending a fax? View a fax?... Annotate a fax?... Print a fax?... Preview a message...

More information

Getting Started Guide. Chapter 3 Using Styles and Templates

Getting Started Guide. Chapter 3 Using Styles and Templates Getting Started Guide Chapter 3 Using Styles and Templates Copyright This document is Copyright 2010 2013 by its contributors as listed below. You may distribute it and/or modify it under the terms of

More information

Importing Local Contacts from Thunderbird

Importing Local Contacts from Thunderbird 1 Importing Local Contacts from Thunderbird Step 1, Export Contacts from Thunderbird In Thunderbird, select Address Book. In the Address Book, click on Personal Address Book and then select Export from

More information

EQuIS Data Processor (EDP) User Manual

EQuIS Data Processor (EDP) User Manual EQuIS Data Processor (EDP) User Manual Introduction EQuIS Data Processor (EDP) Introduction The EQuIS Data Processor, or EDP, is today s answer to the many data quality issues that plague data managers.

More information

Instructions for Using the Databases

Instructions for Using the Databases Appendix D Instructions for Using the Databases Two sets of databases have been created for you if you choose to use the Documenting Our Work forms. One set is in Access and one set is in Excel. They are

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have

More information

MOVING FROM CELL TO CELL

MOVING FROM CELL TO CELL VCAE: EXCEL Lesson 1 Please send comments to Author: Zahra Siddiqui at zed_ess@hotmail.com Concepts Covered: Cell Address; Cell Pointer; Moving across Cells Constants: Entering, Editing, Formatting Using

More information

RegressItPC installation and test instructions 1

RegressItPC installation and test instructions 1 RegressItPC installation and test instructions 1 1. Create a new folder in which to store your RegressIt files. It is recommended that you create a new folder called RegressIt in the Documents folder,

More information

Computer lab 2 Course: Introduction to R for Biologists

Computer lab 2 Course: Introduction to R for Biologists Computer lab 2 Course: Introduction to R for Biologists April 23, 2012 1 Scripting As you have seen, you often want to run a sequence of commands several times, perhaps with small changes. An efficient

More information

HOW TO USE THE EXPORT FEATURE IN LCL

HOW TO USE THE EXPORT FEATURE IN LCL HOW TO USE THE EXPORT FEATURE IN LCL In LCL go to the Go To menu and select Export. Select the items that you would like to have exported to the file. To select them you will click the item in the left

More information

MATLAB TUTORIAL WORKSHEET

MATLAB TUTORIAL WORKSHEET MATLAB TUTORIAL WORKSHEET What is MATLAB? Software package used for computation High-level programming language with easy to use interactive environment Access MATLAB at Tufts here: https://it.tufts.edu/sw-matlabstudent

More information

The KWordQuiz Handbook. Peter Hedlund

The KWordQuiz Handbook. Peter Hedlund Peter Hedlund 2 Contents 1 Introduction 1 1.1 Easy to use............................... 1 1.1.1 Practice modes........................ 1 1.1.2 Quiz types........................... 1 1.1.3 Vocabulary

More information

Describe the Squirt Studio

Describe the Squirt Studio Name: Recitation: Describe the Squirt Studio This sheet includes both instruction sections (labeled with letters) and problem sections (labeled with numbers). Please work through the instructions and answer

More information

Creating a data file and entering data

Creating a data file and entering data 4 Creating a data file and entering data There are a number of stages in the process of setting up a data file and analysing the data. The flow chart shown on the next page outlines the main steps that

More information

BASIC USER TRAINING PROGRAM Module 5: Test Case Development

BASIC USER TRAINING PROGRAM Module 5: Test Case Development BASIC USER TRAINING PROGRAM Module 5: Test Case Development Objective Student will have an understanding of how to create, edit and execute a Test Case from Develop a Test Case Activity Page. Student will

More information

Using vletter Handwriting Software with Mail Merge in Word 2007

Using vletter Handwriting Software with Mail Merge in Word 2007 Using vletter Handwriting Software with Mail Merge in Word 2007 Q: What is Mail Merge? A: The Mail Merge feature in Microsoft Word allows you to merge an address file with a form letter in order to generate

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

.txt - Exporting and Importing. Table of Contents

.txt - Exporting and Importing. Table of Contents .txt - Exporting and Importing Table of Contents Export... 2 Using Add Skip... 3 Delimiter... 3 Other Options... 4 Saving Templates of Options Chosen... 4 Editing Information in the lower Grid... 5 Import...

More information

Excel Spreadsheets and Graphs

Excel Spreadsheets and Graphs Excel Spreadsheets and Graphs Spreadsheets are useful for making tables and graphs and for doing repeated calculations on a set of data. A blank spreadsheet consists of a number of cells (just blank spaces

More information

Excel Shortcuts Increasing YOUR Productivity

Excel Shortcuts Increasing YOUR Productivity Excel Shortcuts Increasing YOUR Productivity CompuHELP Division of Tommy Harrington Enterprises, Inc. tommy@tommyharrington.com https://www.facebook.com/tommyharringtonextremeexcel Excel Shortcuts Increasing

More information

Introduction to Spreadsheets

Introduction to Spreadsheets Introduction to Spreadsheets Spreadsheets are computer programs that were designed for use in business. However, scientists quickly saw how useful they could be for analyzing data. As the programs have

More information

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software. Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means

More information

Chapter 2 Assignment (due Thursday, April 19)

Chapter 2 Assignment (due Thursday, April 19) (due Thursday, April 19) Introduction: The purpose of this assignment is to analyze data sets by creating histograms and scatterplots. You will use the STATDISK program for both. Therefore, you should

More information

Tutorial (Unix Version)

Tutorial (Unix Version) Tutorial (Unix Version) S.f.Statistik, ETHZ February 26, 2010 Introduction This tutorial will give you some basic knowledge about working with R. It will also help you to familiarize with an environment

More information

LOOMIS EXPRESS HOW TO IMPORT THE E-BILL LOOMIS ( ) Technical Support Hotline

LOOMIS EXPRESS HOW TO IMPORT THE E-BILL LOOMIS ( ) Technical Support Hotline LOOMIS EXPRESS HOW TO IMPORT THE E-BILL www.loomis-express.com 1.855.2LOOMIS (1.855.256.6647) Technical Support Hotline 1.877.549.3638 HOW TO IMPORT THE E-BILL INTO EXCEL Thank you for choosing Loomis

More information