Introduction to R. 1 Introduction 2. 2 What You Need 2
|
|
- Alison Preston
- 5 years ago
- Views:
Transcription
1 Introduction to R Dave Armstrong University of Wisconsin-Milwaukee Department of Political Science e: armstrod@uwm.edu w: Contents 1 Introduction 2 2 What You Need 2 3 Reading in Data from Other Programs Sas Stata SPSS Excel (csv) Graphical User Interfaces Rcmdr Deducer Saving & Writing Where does R store things? Writing Saving Help! Books Web
2 1 Introduction Rather than slides, I have decided to distribute handouts that have more prose in them than slides would permit. The idea is to provide something that will serve as a slightly more comprehensive reference, than would slides, when you return home. If you re reading this, you want to learn R, either of your own accord or under duress. Here are some of the reasons that I use R: It s open source (that means FREE!) Rapid development in statistical routines/capabilities. Great graphs (including interactive and 3D displays) without (as much) hassle. Multiple datasets open at once (I know, SAS users will wonder why this is such a big deal). Save entire workspace, including multiple datasets, all models, etc... Easily programmable/customizable; easily see the contents (guts) of any function. Easy integration with L A TEX (jump on the reproducible research bandwagon). 2 What You Need Things you ll need to do what we re doing in the workshop: R ( On Windows, choose to install both the 32-bit and 64-bit architectures if you have the option. Java Runtime Environment: downloads/jre8-downloads html If you have a choice between the 64-bit version and the 32 bit version you need to get the one that goes with the version of R you are using. You can open R and type version at the command prompt and hit enter and you should see one of the two outputs below: You may also want to have RStudio, an integrated development environment (IDE) for R ( The free RStudio desktop should be sufficient. 3 Reading in Data from Other Programs R makes it easy to read in data from other software - particularly excel, SPSS, Sas and Stata. To do this, you ll need to use a different package. Packages are collection of functions that are packaged together that you can download. In R, you can install packages from the Comprehensive R Archive Network by doing: 2
3 Figure 1: R Version Architecture (a) 32-bit (b) 64-bit install.packages('package.name') 3.1 Sas For example, if you wanted to download the package that would allow you to install.sas7bdat files, you would do: install.packages('sas7bdat') You only have to install packages once. Once you re in R and you want to use the functions in a package, you have to use the library() function. library(sas7bdat) If you want to see what functions are in the package, you can type: help(package='sas7bdat') To read in a dataset, you could do: dat <- read.sas7bdat('mvreg.sas7bdat') summary(dat) ## LOCUS_OF_CONTROL SELF_CONCEPT READ WRITE ## Min. : Min. : Min. :24.62 Min. :20.07 ## 1st Qu.: st Qu.: st Qu.: st Qu.:45.60 ## Median : Median : Median :51.86 Median :52.57 ## Mean : Mean : Mean :51.90 Mean :52.38 ## 3rd Qu.: rd Qu.: rd Qu.: rd Qu.:
4 ## Max. : Max. : Max. :80.59 Max. :83.93 ## SCIENCE MOTIVATION PROG ## Min. :21.99 Min. : Min. :1.000 ## 1st Qu.: st Qu.: st Qu.:2.000 ## Median :51.37 Median : Median :2.000 ## Mean :51.76 Mean : Mean :2.088 ## 3rd Qu.: rd Qu.: rd Qu.:3.000 ## Max. :80.37 Max. : Max. :3.000 now the object dat holds the data you just read in. 3.2 Stata To read Stata files, there are a couple of different options. The read.dta function in the foreign package reads in Stata datasets saved in formats earlier than Stata 13. library(foreign) dat <- read.dta('mvreg_12.dta') summary(dat) ## locus_of_control self_concept motivation ## Min. : Min. : Min. : ## 1st Qu.: st Qu.: st Qu.: ## Median : Median : Median : ## Mean : Mean : Mean : ## 3rd Qu.: rd Qu.: rd Qu.: ## Max. : Max. : Max. : ## read write science prog ## Min. :24.62 Min. :20.07 Min. :21.99 general :138 ## 1st Qu.: st Qu.: st Qu.:45.32 academic :271 ## Median :51.86 Median :52.57 Median :51.37 vocational:191 ## Mean :51.90 Mean :52.38 Mean :51.76 ## 3rd Qu.: rd Qu.: rd Qu.:58.06 ## Max. :80.59 Max. :83.93 Max. :80.37 To read Stata files from version 13 or later, you can use the read.dta13 function in the readstata13 package. First, you have to install the package: install.packages('readstata13') Then, you can load the package and use it to read in the data. library(readstata13) dat <-read.dta13('mvreg_14.dta', nonint.factors=t) summary(dat) 4
5 ## locus_of_control self_concept motivation ## Min. : Min. : Min. : ## 1st Qu.: st Qu.: st Qu.: ## Median : Median : Median : ## Mean : Mean : Mean : ## 3rd Qu.: rd Qu.: rd Qu.: ## Max. : Max. : Max. : ## read write science prog ## Min. :24.62 Min. :20.07 Min. :21.99 general :138 ## 1st Qu.: st Qu.: st Qu.:45.32 academic :271 ## Median :51.86 Median :52.57 Median :51.37 vocational:191 ## Mean :51.90 Mean :52.38 Mean :51.76 ## 3rd Qu.: rd Qu.: rd Qu.:58.06 ## Max. :80.59 Max. :83.93 Max. : SPSS The read.spss function in the foreign package reads all versions of SPSS files, both.sav and.por types. library(foreign) dat <- read.spss('mvreg.sav', to.data.frame=t, use.value.labels=t) ## Warning in read.spss("mvreg.sav", to.data.frame = T, use.value.labels = T): mvreg.sav: Unrecognized record type 7, subtype 18 encountered in system file summary(dat) ## locus_of_control self_concept motivation ## Min. : Min. : Min. : ## 1st Qu.: st Qu.: st Qu.: ## Median : Median : Median : ## Mean : Mean : Mean : ## 3rd Qu.: rd Qu.: rd Qu.: ## Max. : Max. : Max. : ## read write science prog ## Min. :24.62 Min. :20.07 Min. :21.99 general :138 ## 1st Qu.: st Qu.: st Qu.:45.32 academic :271 ## Median :51.86 Median :52.57 Median :51.37 vocational:191 ## Mean :51.90 Mean :52.38 Mean :51.76 ## 3rd Qu.: rd Qu.: rd Qu.:58.06 ## Max. :80.59 Max. :83.93 Max. :
6 3.4 Excel (csv) There is a read.csv function that is always available (not in a package you have to load) that will read.csv files. dat <- read.csv('mvreg.csv', header=t) summary(dat) ## locus_of_control self_concept motivation ## Min. : Min. : Min. : ## 1st Qu.: st Qu.: st Qu.: ## Median : Median : Median : ## Mean : Mean : Mean : ## 3rd Qu.: rd Qu.: rd Qu.: ## Max. : Max. : Max. : ## read write science prog ## Min. :24.62 Min. :20.07 Min. :21.99 academic :271 ## 1st Qu.: st Qu.: st Qu.:45.32 general :138 ## Median :51.86 Median :52.57 Median :51.37 vocational:191 ## Mean :51.90 Mean :52.38 Mean :51.76 ## 3rd Qu.: rd Qu.: rd Qu.:58.06 ## Max. :80.59 Max. :83.93 Max. : Graphical User Interfaces Instead of showing you a bunch of code, I want to show you two graphical interfaces that might be useful as you start modeling - Rcmdr and JGR. Both of these are free and have different functionality. Let s start with Rcmdr (pronounced R Commander). To learn more about R Commander and the plugins available, see Rcmdr To use the R commander, you need to install the package and all of its dependencies. install.packages('rcmdr', dependencies=t) For this to work on the Mac, you ll also need a version of Quartz, I use XQuartz ( Once that is installed, you can load the package. That will activate a window that gives you menus to estimate statistical models and make graphs. It should look something like this: 6
7 Any data set that was active in R when you invoked Rcmdr will be available for you. You can choose the data set by click in the Data Set field in the upper left of the window near the R logo. That will generate a dialog box that will allow you to pick which data set you want to be active. Here are a couple of things to note: Models are specified with a formula y ~ x + z would regress y on x and z additively. The formula y ~ x*z would regression y on x, z and the product of x and z. Generally, you have to specify the data file being used to estimate a model or make a graph. Once you ve clicked through the menus and submitted the command, the code used to generate the result will be printed in th R Script window and the results will be presented in the Output window. You can type code directly into the R Script window and evaluate it using the Submit button. To show you how the plugins work, suppose we wanted to install the KMggplot2 plugin. We would do the following in R: install.packages('rcmdrplugin.kmggplot2') library(rcmdrplugin.kmggplot2) This will load the Rcmdr package and the KMggplot2 plugin. through some of the menus to see what the new options are. You can then work 7
8 4.2 Deducer Deducer is a different graphical user interface for R. It has lots of options, but its biggest asset is how it allows you to make graphs. You can install JGR (the Java GUI for R) and Deducer with the following functions in R: install.packages(c('jgr', 'Deducer', 'DeducerExtras')) library(jgr) JGR() If you re a mac person and you re having troubles getting the javavm to load, you can do the following in terminal: sudo ln -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib sudo javareconf Then, do the following in R: install.packages('rjava', type='source') This should bring up a window that looks like this: Once it is open, click on the Packages & Data menu, then the Package Manager. That will bring up a dialog, make sure that the loaded box is clicked for Deducer and DeducerExtras. 8
9 5 Saving & Writing 5.1 Where does R store things? Files you ask R to save are stored in R s working directory. By default, this is your home directory (on the mac mine is /Users/armstrod and on Windows it is C:\Users\armstrod\documents). If you invoke R from a different directory, that will be the default working directory. You can find out what R s working directory is with: getwd() ## [1] "/Users/armstrod/Dropbox/IntroR/UWMPsych" You can change the working directory with: Mac: setwd("/users/armstrod/dropbox/intror") Windows: setwd("c:/users/armstrod/dropbox/intror") Note the forward slashes even in the Windows path. You could also do C:\\users\\armstrod\\Dropb For those of you who would prefer to browse to a directory, you could do that with Mac: library(tcltk) setwd(tk_choose.dir()) Windows: setwd(choose.dir()) There are a number of different ways to save data from R. You can either write it out to its own file readable by other software (e.g.,.dta,.csv,.dbf), you can save a single dataset as an R dataset or you can save the entire workspace (i.e., all the objects) so everything is available to you when you load the workspace again (.RData or.rda). 9
10 5.2 Writing You can use the write functions to write data out of R. write.csv() will write out a comma-separated text file that can easily be read back into excel, stata, SPSS, ect... write.table() writes a text file that has whatever spearator you like, but otherwise has similar options and functionality to write.csv() write.dta() writes a Stata.dta file of the dataset. The benefit here is that factors remain defined as variables with labels in Stata. Those attributes go away in the text files. There is no canned function to write out a completed SPSS dataset, but there are two auxiliary functions in the foreign package that allow users to write out a text data file and then an input syntax file that will read the data in and make the right variable and value labels. 5.3 Saving writeforeignstata() takes three arguments, first is the R data frame you want to write out, the second is the name of a data file to which the data will be written and the third is the name of a code file to which the code to input the data will be written. writeforeignspss() has the same arguments as the Stata version. You can save the entire R workspace with save.image() where the only argument needed is a filename (e.g., save.image('myworkspace.rdata')). This will allow you to load all objects in your workspace whenever you want. You can do this with load('myworkspace.rdata'). You can save a single object or a small set of objects with save() e.g., save(spss.dat, stata.dat, file='mystuff.rda') would save just those two data frames in a file called mystuff.rda which you could also get back into R with load(). 6 Help! There are lots of ways to get help for R. First, let me suggest a couple of books. 6.1 Books Kabacoff, Robert R In Action, 2 nd ed. Manning. Fox, John and Sanford Weisberg An R Companion to Applied Regression, 2 nd ed. Sage. 10
11 Both are wonderful books. Kabacoff s is more of a from scratch book, providing some detail about the basics that John s book doesn t. Kabacoff also has a website called Quick R that has some nice examples and code that could prove useful. John s has some introductory material, but is a bit more focused on regression than Kabacoff s. 6.2 Web There are also lots of internet resources. Stack Overflow The r tag at stack overflow refers to questions relating to R (http: //stackoverflow.com/questions/tagged/r). In the top-right corner of the page, there is a search bar that will allow you to search through r -tagged questions. So, here you can see if your question has already been asked and answered or post a new question if it hasn t. Rseek We talked about for finding packages, but it is also useful for getting help if you need it. UCLA IDRE UCLA s Institute for Digital Research and Education ( ucla.edu/stat/r/) has some nice tools for learning R, too. R Mailing List R has a number of targeted mailing lists (along with a general help list) that are intended to allow users to ask questions ( org/mail.html). There are links to instructions and a posting guide which you should follow to the best of your ability. Failure to follow these guidelines will likely result in you being excoriated by the people on the list. People who answer the questions are doing so on their free time, so make it as easy as possible for them to do that. In general, it is good practice if you re asking someone to help you that you provide them with the means to reproduce the problem. 11
Step by step to getting R installed on your computer
Step by step to getting R installed on your computer 1. Go to the R-Project webpage (www.r-project.org) 2. Select the CRAN option under Download on the left hand side of the page: 3. On the CRAN Mirrors
More informationIntroduction to R. base -> R win32.exe (this will change depending on the latest version)
Dr Raffaella Calabrese, Essex Business School 1. GETTING STARTED Introduction to R R is a powerful environment for statistical computing which runs on several platforms. R is available free of charge.
More informationPOL 345: Quantitative Analysis and Politics
POL 345: Quantitative Analysis and Politics Precept Handout 1 Week 2 (Verzani Chapter 1: Sections 1.2.4 1.4.31) Remember to complete the entire handout and submit the precept questions to the Blackboard
More informationGoals of this course. Crash Course in R. Getting Started with R. What is R? What is R? Getting you setup to use R under Windows
Oxford Spring School, April 2013 Effective Presentation ti Monday morning lecture: Crash Course in R Robert Andersen Department of Sociology University of Toronto And Dave Armstrong Department of Political
More informationSISG/SISMID Module 3
SISG/SISMID Module 3 Introduction to R Ken Rice Tim Thornton University of Washington Seattle, July 2018 Introduction: Course Aims This is a first course in R. We aim to cover; Reading in, summarizing
More informationAn Introduction to R 1.3 Some important practical matters when working with R
An Introduction to R 1.3 Some important practical matters when working with R Dan Navarro (daniel.navarro@adelaide.edu.au) School of Psychology, University of Adelaide ua.edu.au/ccs/people/dan DSTO R Workshop,
More informationIN-CLASS EXERCISE: INTRODUCTION TO R
NAVAL POSTGRADUATE SCHOOL IN-CLASS EXERCISE: INTRODUCTION TO R Survey Research Methods Short Course Marine Corps Combat Development Command Quantico, Virginia May 2013 In-class Exercise: Introduction to
More informationIntroduction 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 informationDepending on the computer you find yourself in front of, here s what you ll need to do to open SPSS.
1 SPSS 11.5 for Windows Introductory Assignment Material covered: Opening an existing SPSS data file, creating new data files, generating frequency distributions and descriptive statistics, obtaining printouts
More informationthe star lab introduction to R Day 2 Open R and RWinEdt should follow: we ll need that today.
R-WinEdt Open R and RWinEdt should follow: we ll need that today. Cleaning the memory At any one time, R is storing objects in its memory. The fact that everything is an object in R is generally a good
More informationModule 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 informationStat 302 Statistical Software and Its Applications Data Import and Export
1 Stat 302 Statistical Software and Its Applications Data Import and Export Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 January 26, 2015 2 General Remarks on I/O
More informationIntroduction to R. UCLA Statistical Consulting Center R Bootcamp. Irina Kukuyeva September 20, 2010
UCLA Statistical Consulting Center R Bootcamp Irina Kukuyeva ikukuyeva@stat.ucla.edu September 20, 2010 Outline 1 Introduction 2 Preliminaries 3 Working with Vectors and Matrices 4 Data Sets in R 5 Overview
More informationAn Introduction to R- Programming
An Introduction to R- Programming Hadeel Alkofide, Msc, PhD NOT a biostatistician or R expert just simply an R user Some slides were adapted from lectures by Angie Mae Rodday MSc, PhD at Tufts University
More informationR syntax guide. Richard Gonzalez Psychology 613. August 27, 2015
R syntax guide Richard Gonzalez Psychology 613 August 27, 2015 This handout will help you get started with R syntax. There are obviously many details that I cannot cover in these short notes but these
More informationLab 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 informationIntroduction to R. Andy Grogan-Kaylor October 22, Contents
Introduction to R Andy Grogan-Kaylor October 22, 2018 Contents 1 Background 2 2 Introduction 2 3 Base R and Libraries 3 4 Working Directory 3 5 Writing R Code or Script 4 6 Graphical User Interface 4 7
More informationPackaging Your Program into a Distributable JAR File
Colin Kincaid Handout #5 CS 106A August 8, 2018 Packaging Your Program into a Distributable JAR File Based on a handout by Eric Roberts and Brandon Burr Now that you ve written all these wonderful programs,
More informationThe R and R-commander software
The R and R-commander software This course uses the statistical package 'R' and the 'R-commander' graphical user interface (Rcmdr). Full details about these packages and the advantages associated with
More information- 1 - Handout #33 March 14, 2014 JAR Files. CS106A Winter
CS106A Winter 2013-2014 Handout #33 March 14, 2014 JAR Files Handout by Eric Roberts, Mehran Sahami, and Brandon Burr Now that you ve written all these wonderful programs, wouldn t it be great if you could
More informationEPIB Four Lecture Overview of R
EPIB-613 - Four Lecture Overview of R R is a package with enormous capacity for complex statistical analysis. We will see only a small proportion of what it can do. The R component of EPIB-613 is divided
More informationCSI Lab 02. Tuesday, January 21st
CSI Lab 02 Tuesday, January 21st Objectives: Explore some basic functionality of python Introduction Last week we talked about the fact that a computer is, among other things, a tool to perform high speed
More informationNavigating and Managing Files and Folders in Windows XP
Part 1 Navigating and Managing Files and Folders in Windows XP In the first part of this book, you ll become familiar with the Windows XP Home Edition interface and learn how to view and manage files,
More informationLAB #1: DESCRIPTIVE STATISTICS WITH R
NAVAL POSTGRADUATE SCHOOL LAB #1: DESCRIPTIVE STATISTICS WITH R Statistics (OA3102) Lab #1: Descriptive Statistics with R Goal: Introduce students to various R commands for descriptive statistics. Lab
More informationIntroduction to R. Dataset Basics. March 2018
Introduction to R March 2018 1. Preliminaries.... a) Suggested packages for importing/exporting data.... b) FAQ: How to find the path of your dataset (or whatever). 2. Import/Export Data........ a) R (.Rdata)
More informationDepending on the computer you find yourself in front of, here s what you ll need to do to open SPSS.
1 SPSS 13.0 for Windows Introductory Assignment Material covered: Creating a new SPSS data file, variable labels, value labels, saving data files, opening an existing SPSS data file, generating frequency
More informationThe 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 informationAn Introduction to R 1.1 Getting started
An Introduction to R 1.1 Getting started Dan Navarro (daniel.navarro@adelaide.edu.au) School of Psychology, University of Adelaide ua.edu.au/ccs/people/dan DSTO R Workshop, 29-Apr-2015 There s a book http://ua.edu.au/ccs/teaching/lsr/
More informationL.A.M.P. Stack Part I
L.A.M.P. Stack Part I By George Beatty and Matt Frantz This lab will cover the basic installation and some configuration of a LAMP stack on a Ubuntu virtual box. Students will download and install the
More informationInstruction: Download and Install R and RStudio
1 Instruction: Download and Install R and RStudio We will use a free statistical package R, and a free version of RStudio. Please refer to the following two steps to download both R and RStudio on your
More informationWithout further ado, let s go over and have a look at what I ve come up with.
JIRA Integration Transcript VLL Hi, my name is Jonathan Wilson and I m the service management practitioner with NHS Digital based in the United Kingdom. NHS Digital is the provider of services to the National
More informationCSCI 201 Lab 1 Environment Setup
CSCI 201 Lab 1 Environment Setup "The journey of a thousand miles begins with one step." - Lao Tzu Introduction This lab document will go over the steps to install and set up Eclipse, which is a Java integrated
More informationData Input/Output. Andrew Jaffe. January 4, 2016
Data Input/Output Andrew Jaffe January 4, 2016 Before we get Started: Working Directories R looks for files on your computer relative to the working directory It s always safer to set the working directory
More informationRemodeling Your Office A New Look for the SAS Add-In for Microsoft Office
Paper SAS1864-2018 Remodeling Your Office A New Look for the SAS Add-In for Microsoft Office ABSTRACT Tim Beese, SAS Institute Inc., Cary, NC Millions of people spend their weekdays in an office. Occasionally
More informationWeek - 01 Lecture - 04 Downloading and installing Python
Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and
More informationDOING MORE WITH EXCEL: MICROSOFT OFFICE 2010
DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Filling Data Across Columns
More informationIntroducing Oracle R Enterprise 1.4 -
Hello, and welcome to this online, self-paced lesson entitled Introducing Oracle R Enterprise. This session is part of an eight-lesson tutorial series on Oracle R Enterprise. My name is Brian Pottle. I
More informationLastly, 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 informationAdding content to your Blackboard 9.1 class
Adding content to your Blackboard 9.1 class There are quite a few options listed when you click the Build Content button in your class, but you ll probably only use a couple of them most of the time. Note
More informationRegression III: Advanced Methods
Lecture 2: Software Introduction Regression III: Advanced Methods William G. Jacoby Department of Political Science Michigan State University jacoby@msu.edu Getting Started with R What is R? A tiny R session
More informationAn Introduction to Using R
An Introduction to Using R Dino Christenson & Scott Powell Ohio StateUniversity November 20, 2007 Introduction to R Outline I. What is R? II. Why use R? III. Where to get R? IV. GUI & scripts V. Objects
More informationOne of the fundamental kinds of websites that SharePoint 2010 allows
Chapter 1 Getting to Know Your Team Site In This Chapter Requesting a new team site and opening it in the browser Participating in a team site Changing your team site s home page One of the fundamental
More informationDOING MORE WITH EXCEL: MICROSOFT OFFICE 2013
DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Basic Formulas Filling Data
More informationCSCU9B2 Practical 1: Introduction to HTML 5
CSCU9B2 Practical 1: Introduction to HTML 5 Aim: To learn the basics of creating web pages with HTML5. Please register your practical attendance: Go to the GROUPS\CSCU9B2 folder in your Computer folder
More informationBasics 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 informationHistory, 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 informationJerry Cain Handout #5 CS 106AJ September 30, Using JSKarel
Jerry Cain Handout #5 CS 106AJ September 30, 2017 Using JSKarel This handout describes how to download and run the JavaScript version of Karel that we ll be using for our first assignment. 1. Getting started
More informationLab 1. Introduction to R & SAS. R is free, open-source software. Get it here:
Lab 1. Introduction to R & SAS R is free, open-source software. Get it here: http://tinyurl.com/yfet8mj for your own computer. 1.1. Using R like a calculator Open R and type these commands into the R Console
More informationRuby on Rails Welcome. Using the exercise files
Ruby on Rails Welcome Welcome to Ruby on Rails Essential Training. In this course, we're going to learn the popular open source web development framework. We will walk through each part of the framework,
More informationR: Learning by Exapmle Data Management and Analysis
R: Learning by Exapmle Data Management and Analysis Dave Armstrong University of Wisconsin-Milwaukee Department of Political Science e: armstrod@uwm.edu w: www.quantoid.net/teachicpsr/rbyexample Contents
More informationIntroduction to R Cmdr
Introduction to R Cmdr MARS 6910 Spring 2015 David Hyrenbach Starting R Some Basic Unix Commands (http://cran.r-project.org/ doc/contrib/short-refcard.pdf) ls() show objects in search path; () default
More informationIntroduction 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 informationIntroduction to Stata: An In-class Tutorial
Introduction to Stata: An I. The Basics - Stata is a command-driven statistical software program. In other words, you type in a command, and Stata executes it. You can use the drop-down menus to avoid
More informationLoading Data into R. Loading Data Sets
Loading Data into R Loading Data Sets Rather than manually entering data using c() or something else, we ll want to load data in stored in a data file. For this class, these will usually be one of three
More informationLecture 8: Getting Data
Lecture 8: Getting Data 36-350 22 September 2014 In Previous Episodes Seen functions to load data in passing Learned about string manipulation and regexp Agenda Getting data into and out of the system
More informationCourse contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions
Course contents Overview: Goodbye, calculator Lesson 1: Get started Lesson 2: Use cell references Lesson 3: Simplify formulas by using functions Overview: Goodbye, calculator Excel is great for working
More informationThe R Software Environment
The R Software Environment a (very) short introduction L. Torgo ltorgo@dcc.fc.up.pt Departamento de Ciência de Computadores Faculdade de Ciências / Universidade do Porto Feb, 2017 What is R? The R Project
More informationEntering and Outputting Data 2 nd best TA ever: Steele H. Valenzuela February 2-6, 2015
Entering and Outputting Data 2 nd best TA ever: Steele H. Valenzuela February 2-6, 2015 Contents Things to Know Before You Begin.................................... 1 Entering and Outputting Data......................................
More informationHere we will look at some methods for checking data simply using JOSM. Some of the questions we are asking about our data are:
Validating for Missing Maps Using JOSM This document covers processes for checking data quality in OpenStreetMap, particularly in the context of Humanitarian OpenStreetMap Team and Red Cross Missing Maps
More informationVERSION GROUPWISE WEBACCESS USER'S GUIDE
VERSION GROUPWISE WEBACCESS USER'S GUIDE TM Novell, Inc. makes no representations or warranties with respect to the contents or use of this manual, and specifically disclaims any express or implied warranties
More informationIf you re using a Mac, follow these commands to prepare your computer to run these demos (and any other analysis you conduct with the Audio BNC
If you re using a Mac, follow these commands to prepare your computer to run these demos (and any other analysis you conduct with the Audio BNC sample). All examples use your Workshop directory (e.g. /Users/peggy/workshop)
More informationR Basics / Course Business
R Basics / Course Business We ll be using a sample dataset in class today: CourseWeb: Course Documents " Sample Data " Week 2 Can download to your computer before class CourseWeb survey on research/stats
More informationAn 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 informationSTAT 571A Advanced Statistical Regression Analysis. Introduction to R NOTES
STAT 571A Advanced Statistical Regression Analysis Introduction to R NOTES 2015 University of Arizona Statistics GIDP. All rights reserved, except where previous rights exist. No part of this material
More informationSisulizer Three simple steps to localize
About this manual Sisulizer Three simple steps to localize Copyright 2006 Sisulizer Ltd. & Co KG Content changes reserved. All rights reserved, especially the permission to copy, distribute and translate
More informationStatistics Statistical Computing Software
Statistics 135 - Statistical Computing Software Mark E. Irwin Department of Statistics Harvard University Autumn Term Monday, September 19, 2005 - January 2006 Copyright c 2005 by Mark E. Irwin Personnel
More informationPart I. An Introduction to R
Part I An Introduction to R 1 Chapter 1 Getting Started R is a programming language and comprehensive statistical platform for data exploration and analysis. It is free and open source, which means anyone
More information1 Installation (briefly)
Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB
More informationDreamweaver Website 1: Managing a Website with Dreamweaver
Page 1 of 20 Web Design: Dreamweaver Websites Managing Websites with Dreamweaver Course Description: In this course, you will learn how to create and manage a website using Dreamweaver Templates and Library
More informationStatistics for Biologists: Practicals
Statistics for Biologists: Practicals Peter Stoll University of Basel HS 2012 Peter Stoll (University of Basel) Statistics for Biologists: Practicals HS 2012 1 / 22 Outline Getting started Essentials of
More informationFor Volunteers An Elvanto Guide
For Volunteers An Elvanto Guide www.elvanto.com Volunteers are what keep churches running! This guide is for volunteers who use Elvanto. If you re in charge of volunteers, why not check out our Volunteer
More informationUsing 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 informationLaboratory 1: Eclipse and Karel the Robot
Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also
More informationIntroduction to Programming
CHAPTER 1 Introduction to Programming Begin at the beginning, and go on till you come to the end: then stop. This method of telling a story is as good today as it was when the King of Hearts prescribed
More informationProgramming Robots with ROS, Morgan Quigley, Brian Gerkey & William D. Smart
Programming Robots with ROS, Morgan Quigley, Brian Gerkey & William D. Smart O Reilly December 2015 CHAPTER 23 Using C++ in ROS We chose to use Python for this book for a number of reasons. First, it s
More informationST 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 informationJava using LEGO Mindstorms and LeJOS. University of Idaho
Java using LEGO Mindstorms and LeJOS University of Idaho 2 Contents 1 Introduction 1 1.1 Setting up Java and Eclipse................................ 1 1.2 Setting up the Lego Brick to work with LeJOS.....................
More informationCS450: Structure of Higher Level Languages Spring 2018 Assignment 7 Due: Wednesday, April 18, 2018
CS450: Structure of Higher Level Languages Spring 2018 Assignment 7 Due: Wednesday, April 18, 2018 Taken from assignments by Profs. Carl Offner and Ethan Bolker Part 1 - Modifying The Metacircular Evaluator
More informationAzure Developer Immersion Getting Started
Azure Developer Immersion Getting Started In this walkthrough, you will get connected to Microsoft Azure and Visual Studio Team Services. You will also get the code and supporting files you need onto your
More informationWHCC Sports and Events
WHCC Sports and Events We re using ROES Events as our ordering software for Sports and Events. This is a special version of ROES, written specifically for high volume events. There are two primary differences
More informationR: A Gentle Introduction. Vega Bharadwaj George Mason University Data Services
R: A Gentle Introduction Vega Bharadwaj George Mason University Data Services Part I: Why R? What do YOU know about R and why do you want to learn it? Reasons to use R Free and open-source User-created
More informationMehran Sahami Handout #5 CS 106A September 27, 2017 Downloading Eclipse
Mehran Sahami Handout #5 CS 106A September 27, 2017 Downloading Eclipse Parts of this handout were written by Justin Manus and Brandon Burr and then wantonly updated by your loving CS106A staff. In CS106A,
More informationQPM Lab 1: Installing R and R Studio
QPM Lab 1: Installing R and R Studio Department of Political Science Washington University, St. Louis September 1-2, 2016 QPM Lab 1: Installing R and R Studio 1 Introductions About me Your turn: Name Year
More informationReading How the Web Works
Reading 1.3 - How the Web Works By Jonathan Lane Introduction Every so often, you get offered a behind-the-scenes look at the cogs and fan belts behind the action. Today is your lucky day. In this article
More informationtabulate varname [aw=weightvar]
1 Commands Introduced In this chapter you will learn these Stata basics: How to obtain information about a dataset How to obtain information about variables How to write and save a Do-file (a file that
More informationArduino IDE Friday, 26 October 2018
Arduino IDE Friday, 26 October 2018 12:38 PM Looking Under The Hood Of The Arduino IDE FIND THE ARDUINO IDE DOWNLOAD First, jump on the internet with your favorite browser, and navigate to www.arduino.cc.
More informationStat 302 Statistical Software and Its Applications Introduction to R
Stat 302 Statistical Software and Its Applications Introduction to R Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 January 8, 2015 2 Statistical Software There are
More informationSaving Time. Bill Rising StataCorp LLC 2018 Italian Stata Users Group Meeting Bologna 15 Nov 2018
Saving Time Bill Rising StataCorp LLC 2018 Italian Stata Users Group Meeting Bologna 15 Nov 2018 Contents 1 Introduction 1 1.1 Background................................................ 1 1.2 Stata s User
More informationSTAT 113: R/RStudio Intro
STAT 113: R/RStudio Intro Colin Reimer Dawson Last Revised September 1, 2017 1 Starting R/RStudio There are two ways you can run the software we will be using for labs, R and RStudio. Option 1 is to log
More informationThe name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.
Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that
More informationCREATING POWERFUL AND EFFECTIVE GRAPHICAL DISPLAYS: AN INTRODUCTION TO LATTICE GRAPHICS IN R
APSA Short Course, SC 13 Chicago, Illinois August 29, 2007 Michigan State University CREATING POWERFUL AND EFFECTIVE GRAPHICAL DISPLAYS: AN INTRODUCTION TO LATTICE GRAPHICS IN R I. Some Basic R Concepts
More informationJava Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1
COMP 210: Object-Oriented Programming Lecture Notes 1 Java Program Structure and Eclipse Robert Utterback In these notes we talk about the basic structure of Java-based OOP programs and how to setup and
More informationUsing Karel with Eclipse
Chris Piech Handout #3 CS 106A January 10, 2018 Using Karel with Eclipse Based on a handout by Eric Roberts and Nick Troccoli Once you have downloaded a copy of Eclipse as described on the course website,
More informationHCA Tech Note. Port Forwarding
Port Forwarding Before you read this note hopefully you will have already read and followed the instructions in the Getting Started Guide for deploying client-server and being able to connect a client
More informationChapter 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 informationJump to: Using AAUP Photos AAUP Logos Embedding the AAUP Twitter Feed Embedding the AAUP News Feed CREATING A WEBSITE
Jump to: Using AAUP Photos AAUP Logos Embedding the AAUP Twitter Feed Embedding the AAUP News Feed CREATING A WEBSITE You can make a simple, free chapter website using Google Sites. To start, go to https://sites.google.com/
More informationPart 1: Getting Started
Part 1: Getting Started 140.776 Statistical Computing Ingo Ruczinski Thanks to Thomas Lumley and Robert Gentleman of the R-core group (http://www.r-project.org/) for providing some tex files that appear
More informationLegal Notice: COPYRIGHT: Copyright 2012, 2013, 2014, 2015, 2016, 2017 Hitman Advertising, all rights reserved.
Legal Notice: COPYRIGHT: Copyright 2012, 2013, 2014, 2015, 2016, 2017 Hitman Advertising, all rights reserved. LIMITS OF LIABILITY / DISCLAIMER OF WARRANTY: This report is NOT legal or accounting advice.
More informationCOMS 6100 Class Notes 3
COMS 6100 Class Notes 3 Daniel Solus September 1, 2016 1 General Remarks The class was split into two main sections. We finished our introduction to Linux commands by reviewing Linux commands I and II
More informationAn Introduction to the R Commander
An Introduction to the R Commander BIO/MAT 460, Spring 2011 Christopher J. Mecklin Department of Mathematics & Statistics Biomathematics Research Group Murray State University Murray, KY 42071 christopher.mecklin@murraystate.edu
More information