Introduction to R and R-Studio Toy Program #1 R Essentials. This illustration Assumes that You Have Installed R and R-Studio
|
|
- Elmer Hodges
- 5 years ago
- Views:
Transcription
1 Introduction to R and R-Studio Toy Program #1 R Essentials This illustration Assumes that You Have Installed R and R-Studio If you have not already installed R and RStudio, please see: Windows Users: pdf MAC Users pdf Summary In this illustration, you will launch R-Studio, familiarize yourself with its windows and features, open a file where you will store your work, execute some commands, and, finally, save your work. Launch RStudio and familiarize yourself with the RStudio Interface Windows and Tabs Source: R handout Fall 2018 Toy Program 1 R Essentials.docx Page 1 of 8
2 Key: BLACK - commands (you type these) BROWN - comments (optional, you type these) BLUE output (hopefully, you will see the same!) Like it or Not R is all about Packages Yes, you can do many things with your basic ( base R ) installation such as math and data manipulations but, ultimately, you will be working add-on packages. Working with add-on packages requires TWO steps: Step 1: Install the package Step 2: Load (or require) the installed package to your RStudio session Position Your Cursor in the console window (prompt is > ) # DO THIS ONE TIME ONLY: Use install.packages( ) to install the package stargazer # Note the quotation marks in stargazer install.packages( stargazer ) # DO THIS EVERY SESSION: Use library( ) to attach package to your R- Studio session # Note HERE, quotation marks are NOT used. library(stargazer) 1. Preliminary - Set your working directory # Show current working directory (note yours will be different than mine) getwd() ## [1] "/Users/cbigelow/Desktop" # Change working directory to directory of your choosing setwd("/users/cbigelow/desktop") # Show current working directory again to verify getwd() ## [1] "/Users/cbigelow/Desktop" R handout Fall 2018 Toy Program 1 R Essentials.docx Page 2 of 8
3 Key: BLACK - commands (you type these) BROWN - comments (optional, you type these) BLUE output (hopefully, you will see the same!) 2. Create Some Things R calls these objects # 2.1 Create a vector object # Use c() to create a variable (R might call this a vector object) - unsaved c(1,2, 4, 8, 12, 13, 15) ## [1] # Better is to use the assign command <- to save the vector object with the name v1 v1 <- c(1,2, 4, 8, 12, 13, 15) # To view the contents of an object, simply type the name of the object v1 ## [1] # Use class() to identify the type of object class(v1) ## [1] "numeric" #2.2 Create a random sample from a normal distribution # Use rnorm(samplesize,mean,standarddeviation) to draw a sample of size 1000 y <- rnorm(1000,100,15) # Use data.frame( ) to save your random sample in an object that R calls a data frame. ydata <- data.frame(y) # addition 4+6 ## [1] 10 # Subtraction 4-6 ## [1] Use R- Studio to do Basic Math # Basic math with result stored as object - in TWO lines of code y <- 4+6 y R handout Fall 2018 Toy Program 1 R Essentials.docx Page 3 of 8
4 Key: BLACK - commands (you type these) BROWN - comments (optional, you type these) BLUE output (hopefully, you will see the same!) ## [1] 10 # Basic math with result stored as object - combined in ONE line of code using ; x<- 5+8; x ## [1] 13 # Really fancy - Use paste("string", object) to produce nifty output z<- 8+16; paste("z = 8+16 = ",z) ## [1] "z = 8+16 = 24" 4. Produce Some Descriptive Statistics # Following assumes that you have already done install.packages("stargazer") # Use library() to attach the package stargazer to this session library(stargazer) # Use stargazer() to produce descriptive statistics stargazer(ydata, type="text") ## ## ============================================== ## Statistic N Mean St. Dev. Min Max ## ## y 1, ## # Really fancy - Use stargazer() to produce statistics of your choosing stargazer(ydata,type="text", summary.stat=c("n", "mean", "sd", "min", "p25", "median", "p75", "max")) ## ## ======================================================================== ## Statistic N Mean St. Dev. Min Pctl(25) Median Pctl(75) Max ## ## y 1, ## R handout Fall 2018 Toy Program 1 R Essentials.docx Page 4 of 8
5 Key: BLACK - commands (you type these) BROWN - comments (optional, you type these) BLUE output (hopefully, you will see the same!) 5. Produce a Graph or Two # IMPORTANT - Here we work with the vector object y and NOT the dataframe ydata # Use boxplot() to make a box plot boxplot(ydata$y) # Use hist() to make a histogram hist(ydata$y) # Fancy - Create a TWO PANEL graph (3 steps, but not hard) # Step 1 - Use par() to define panel as having 1 row and 2 columns par(mfrow=c(1,2)) # Step 2 - Produce the two panel graph R handout Fall 2018 Toy Program 1 R Essentials.docx Page 5 of 8
6 boxplot(ydata$y) hist(ydata$y) # Step 3 - Return the graph setting to 1 row and 1 column (important!) par(mfrow=c(1,1)) R handout Fall 2018 Toy Program 1 R Essentials.docx Page 6 of 8
7 Toy Program #1 R Essentials Summary 1. Preliminary Set Your Working Directory Command Example Description/Notes getwd( ) getwd( ) Get current working directory setwd( ) setwd( /Users/cbigelow/Desktop ) Set current working directory NOTES: - be sure to enclose in quotes 2. Create R Objects Command Example Description/Notes c( ) x <- c(1,3,5) Create vector called x NOTES: - elements separated by commas objectname x View elements of x class( ) class(x) Identify type of object; eg numeric data.frame( ) ydata <- data.frame(y) Create data frame called ydata using information in y rnorm( ) y <- rnorm(1000,100,15) Creates a vector y that contains a sample size of 1000 drawn from a normal distribution with mean=100 and standard deviation =15 3. Create R Objects Command Example Answer * 3*7 21 / 3/ ^ or ** 7^3 7 3 = 7*7*7 = 343 sqrt sqrt(3) log log(2) Natural log: ln(2) = log10 log10(2) Log base 10: log 10 (2) = exp exp(2) e 2 = = continued - R handout Fall 2018 Toy Program 1 R Essentials.docx Page 7 of 8
8 Toy Program #1 R Essentials Summary - continued 4. Descriptive Statistics Using Package stargazer Command Example Description/Notes stargazer( ) stargazer(ydata, type= text ) Produce n, mean, standard deviation, min, and max stargazer( ) stargazer(ydata type= text, summary.stat=c( n, mean, sd, min, p25, median, p75, max )) Produce n, mean, standard deviation, minimum, 25 th percentile, median, 75 th percentile and maximum 5. Produce a graph Command Example Description/Notes par(mfrow=c(, ) ) par(mfrow=c(1,1)) Define graphic design to be ONE panel: 1 row, 1 column par(mfrow=c(1,2)) Define graphic design to have TWO panels in one: 1 row, 2 columns. boxplot( ) boxplot(ydata$y) Box plot of variable y that is in data frame ydata hist( ) hist(ydata$y) Histogram of variable y that is in data frame ydata R handout Fall 2018 Toy Program 1 R Essentials.docx Page 8 of 8
Introduction to R and R-Studio Toy Program #2 Excel to R & Basic Descriptives
Introduction to R and R-Studio 2018-19 Toy Program #2 Basic Descriptives Summary The goal of this toy program is to give you a boiler for working with your own excel data. So, I m hoping you ll try!. In
More informationIntroduction to Stata Toy Program #1 Basic Descriptives
Introduction to Stata 2018-19 Toy Program #1 Basic Descriptives Summary The goal of this toy program is to get you in and out of a Stata session and, along the way, produce some descriptive statistics.
More informationDataset Used in This Lab (download from course website framingham_1000.rdata
Introduction to R and R- Studio Sring 2019 Lab #1 Some Basics Before you begin: If you have not already installed R and RStudio, lease see Windows Users: htt://eole.umass.edu/bie540w/df/how%20to%20install%20r%20and%20r%20studio%20windows%20users%20fall%20201
More informationAuthor: Leonore Findsen, Qi Wang, Sarah H. Sellke, Jeremy Troisi
0. Downloading Data from the Book Website 1. Go to http://bcs.whfreeman.com/ips8e 2. Click on Data Sets 3. Click on Data Sets: PC Text 4. Click on Click here to download. 5. Right Click PC Text and choose
More informationChapter 3: Data Description - Part 3. Homework: Exercises 1-21 odd, odd, odd, 107, 109, 118, 119, 120, odd
Chapter 3: Data Description - Part 3 Read: Sections 1 through 5 pp 92-149 Work the following text examples: Section 3.2, 3-1 through 3-17 Section 3.3, 3-22 through 3.28, 3-42 through 3.82 Section 3.4,
More informationMaking plots in R [things I wish someone told me when I started grad school]
Making plots in R [things I wish someone told me when I started grad school] Kirk Lohmueller Department of Ecology and Evolutionary Biology UCLA September 22, 2017 In honor of Talk Like a Pirate Day...
More informationI Launching and Exiting Stata. Stata will ask you if you would like to check for updates. Update now or later, your choice.
I Launching and Exiting Stata 1. Launching Stata Stata can be launched in either of two ways: 1) in the stata program, click on the stata application; or 2) double click on the short cut that you have
More informationBusiness Statistics: R tutorials
Business Statistics: R tutorials Jingyu He September 29, 2017 Install R and RStudio R is a free software environment for statistical computing and graphics. Download free R and RStudio for Windows/Mac:
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 informationS-PLUS INSTRUCTIONS FOR CASE STUDIES IN THE STATISTICAL SLEUTH
S-PLUS INSTRUCTIONS FOR CASE STUDIES IN THE STATISTICAL SLEUTH Dan Schafer January, 2002 This guide contains brief instructions for accomplishing the graphical and numerical analyses of the case studies
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 informationYou will have to download all of the data used from the internet before R can access the data.
0. Downloading Data You will have to download all of the data used from the internet before R can access the data. If the file accessed via a link, then right click on the file name and save it to a directory
More informationComputing With R Handout 1
Computing With R Handout 1 Getting Into R To access the R language (free software), go to a computing lab that has R installed, or a computer on which you have downloaded R from one of the distribution
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 and R-Studio In-Class Lab Activity The 1970 Draft Lottery
Introduction to R and R-Studio 2018-19 In-Class Lab Activity The 1970 Draft Lottery Summary The goal of this activity is to give you practice with R Markdown for saving your work. It s also a fun bit of
More informationAssignment 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 informationNo Name What it does? 1 attach Attach your data frame to your working environment. 2 boxplot Creates a boxplot.
No Name What it does? 1 attach Attach your data frame to your working environment. 2 boxplot Creates a boxplot. 3 confint A metafor package function that gives you the confidence intervals of effect sizes.
More informationfile:///users/williams03/a/workshops/2015.march/final/intro_to_r.html
Intro to R R is a functional programming language, which means that most of what one does is apply functions to objects. We will begin with a brief introduction to R objects and how functions work, and
More informationR: BASICS. Andrea Passarella. (plus some additions by Salvatore Ruggieri)
R: BASICS Andrea Passarella (plus some additions by Salvatore Ruggieri) BASIC CONCEPTS R is an interpreted scripting language Types of interactions Console based Input commands into the console Examine
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 informationAdvanced Econometric Methods EMET3011/8014
Advanced Econometric Methods EMET3011/8014 Lecture 2 John Stachurski Semester 1, 2011 Announcements Missed first lecture? See www.johnstachurski.net/emet Weekly download of course notes First computer
More informationTutorial: SeqAPass Boxplot Generator
1 Tutorial: SeqAPass Boxplot Generator 1. Access SeqAPASS by opening https://seqapass.epa.gov/seqapass/ using Mozilla Firefox web browser 2. Open the About link on the login page or upon logging in to
More informationPractical 2: Plotting
Practical 2: Plotting Complete this sheet as you work through it. If you run into problems, then ask for help - don t skip sections! Open Rstudio and store any files you download or create in a directory
More informationWhat is KNIME? workflows nodes standard data mining, data analysis data manipulation
KNIME TUTORIAL What is KNIME? KNIME = Konstanz Information Miner Developed at University of Konstanz in Germany Desktop version available free of charge (Open Source) Modular platform for building and
More informationCh 1 : Descriptive Statistics
Summer 2017 UAkron Dept. of Stats [3470 : 461/561] Applied Statistics Ch 1 : Descriptive Statistics Contents 1 Preliminaries 2 1.1 Course Web Page................................................................
More informationVariables: Objects in R
Variables: Objects in R Basic R Functionality Introduction to R for Public Health Researchers Common new users frustations 1. Different versions of software 2. Data type problems (is that a string or a
More informationComputing With R Handout 1
Computing With R Handout 1 The purpose of this handout is to lead you through a simple exercise using the R computing language. It is essentially an assignment, although there will be nothing to hand in.
More informationError-Bar Charts from Summary Data
Chapter 156 Error-Bar Charts from Summary Data Introduction Error-Bar Charts graphically display tables of means (or medians) and variability. Following are examples of the types of charts produced by
More informationShort Introduction to R
Short Introduction to R Paulino Pérez 1 José Crossa 2 1 ColPos-México 2 CIMMyT-México June, 2015. CIMMYT, México-SAGPDB Short Introduction to R 1/51 Contents 1 Introduction 2 Simple objects 3 User defined
More informationIntroduction to R Jason Huff, QB3 CGRL UC Berkeley April 15, 2016
Introduction to R Jason Huff, QB3 CGRL UC Berkeley April 15, 2016 Installing R R is constantly updated and you should download a recent version; the version when this workshop was written was 3.2.4 I also
More informationIntroduction to Stata First Session. I- Launching and Exiting Stata Launching Stata Exiting Stata..
Introduction to Stata 2016-17 01. First Session I- Launching and Exiting Stata... 1. Launching Stata... 2. Exiting Stata.. II - Toolbar, Menu bar and Windows.. 1. Toolbar Key.. 2. Menu bar Key..... 3.
More informationStatistics 528: Minitab Handout 1
Statistics 528: Minitab Handout 1 Throughout the STAT 528-530 sequence, you will be asked to perform numerous statistical calculations with the aid of the Minitab software package. This handout will get
More informationLab 1: Introduction, Plotting, Data manipulation
Linear Statistical Models, R-tutorial Fall 2009 Lab 1: Introduction, Plotting, Data manipulation If you have never used Splus or R before, check out these texts and help pages; http://cran.r-project.org/doc/manuals/r-intro.html,
More informationIn Minitab interface has two windows named Session window and Worksheet window.
Minitab Minitab is a statistics package. It was developed at the Pennsylvania State University by researchers Barbara F. Ryan, Thomas A. Ryan, Jr., and Brian L. Joiner in 1972. Minitab began as a light
More informationA (very) brief introduction to R
A (very) brief introduction to R You typically start R at the command line prompt in a command line interface (CLI) mode. It is not a graphical user interface (GUI) although there are some efforts to produce
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 informationIntroduction to StatKey Getting Data Into StatKey
Introduction to StatKey 2016-17 03. Getting Data Into StatKey Introduction This handout assumes that you do not want to type in the data by hand. This handout shows you how to use Excel and cut and paste
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 informationInstallation and Introduction to Jupyter & RStudio
Installation and Introduction to Jupyter & RStudio CSE 4/587 Data Intensive Computing Spring 2017 Prepared by Jacob Condello 1 Anaconda/Jupyter Installation 1.1 What is Anaconda? Anaconda is a freemium
More informationWeek 1: Introduction to R, part 1
Week 1: Introduction to R, part 1 Goals Learning how to start with R and RStudio Use the command line Use functions in R Learning the Tools What is R? What is RStudio? Getting started R is a computer program
More informationLECTURE NOTES FOR ECO231 COMPUTER APPLICATIONS I. Part Two. Introduction to R Programming. RStudio. November Written by. N.
LECTURE NOTES FOR ECO231 COMPUTER APPLICATIONS I Part Two Introduction to R Programming RStudio November 2016 Written by N.Nilgün Çokça Introduction to R Programming 5 Installing R & RStudio 5 The R Studio
More informationA brief introduction to R
A brief introduction to R Cavan Reilly September 29, 2017 Table of contents Background R objects Operations on objects Factors Input and Output Figures Missing Data Random Numbers Control structures Background
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 informationMATH11400 Statistics Homepage
MATH11400 Statistics 1 2010 11 Homepage http://www.stats.bris.ac.uk/%7emapjg/teach/stats1/ 1.1 A Framework for Statistical Problems Many statistical problems can be described by a simple framework in which
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 informationTMTH 3360 NOTES ON COMMON GRAPHS AND CHARTS
To Describe Data, consider: Symmetry Skewness TMTH 3360 NOTES ON COMMON GRAPHS AND CHARTS Unimodal or bimodal or uniform Extreme values Range of Values and mid-range Most frequently occurring values In
More informationStata version 13. First Session. January I- Launching and Exiting Stata Launching Stata Exiting Stata..
Stata version 13 January 2015 I- Launching and Exiting Stata... 1. Launching Stata... 2. Exiting Stata.. II - Toolbar, Menu bar and Windows.. 1. Toolbar Key.. 2. Menu bar Key..... 3. Windows..... III -...
More informationGetting to Know Your Data Set in RStudio
Getting to Know Your Data Set in RStudio Table of Contents I. Data Set II. Acquiring Your Data Set from Qualtrics III. R Studio Interface IV. Inputting Data into R Studio from a.csv V. R Studio Output.2.2.4.5.5
More informationDAY 52 BOX-AND-WHISKER
DAY 52 BOX-AND-WHISKER VOCABULARY The Median is the middle number of a set of data when the numbers are arranged in numerical order. The Range of a set of data is the difference between the highest and
More informationDemo yeast mutant analysis
Demo yeast mutant analysis Jean-Yves Sgro February 20, 2018 Contents 1 Analysis of yeast growth data 1 1.1 Set working directory........................................ 1 1.2 List all files in directory.......................................
More informationThis document is designed to get you started with using R
An Introduction to R This document is designed to get you started with using R We will learn about what R is and its advantages over other statistics packages the basics of R plotting data and graphs What
More informationA whirlwind introduction to using R for your research
A whirlwind introduction to using R for your research Jeremy Chacón 1 Outline 1. Why use R? 2. The R-Studio work environment 3. The mock experimental analysis: 1. Writing and running code 2. Getting data
More informationLab #7 - More on Regression in R Econ 224 September 18th, 2018
Lab #7 - More on Regression in R Econ 224 September 18th, 2018 Robust Standard Errors Your reading assignment from Chapter 3 of ISL briefly discussed two ways that the standard regression inference formulas
More informationHow to Create a Box Plot in Excel
How to Create a Box Plot in Excel Prerequisite knowledge: Box Plot also called a box-and-whisker plot provides a horizontal or vertical graphical representation of a distribution of data where the end
More informationLecture 1: Getting Started and Data Basics
Lecture 1: Getting Started and Data Basics The first lecture is intended to provide you the basics for running R. Outline: 1. An Introductory R Session 2. R as a Calculator 3. Import, export and manipulate
More informationR Programming for Computational Linguists and Similar Creatures
R Programming for Computational Linguists and Similar Creatures Marco Baroni 1 and Stefan Evert 2 1 Center for Mind/Brain Sciences University of Trento 2 Cognitive Science Institute University of Onsabrück
More informationIntroduction to scientific programming in R
Introduction to scientific programming in R John M. Drake & Pejman Rohani 1 Introduction This course will use the R language programming environment for computer modeling. The purpose of this exercise
More informationMBV4410/9410 Fall Bioinformatics for Molecular Biology. Introduction to R
MBV4410/9410 Fall 2018 Bioinformatics for Molecular Biology Introduction to R Outline Introduce R Basic operations RStudio Bioconductor? Goal of the lecture Introduce you to R Show how to run R, basic
More informationAn Introduction to Statistical Computing in R
An Introduction to Statistical Computing in R K2I Data Science Boot Camp - Day 1 AM Session May 15, 2017 Statistical Computing in R May 15, 2017 1 / 55 AM Session Outline Intro to R Basics Plotting In
More informationSession 26 TS, Predictive Analytics: Moving Out of Square One. Moderator: Jean-Marc Fix, FSA, MAAA
Session 26 TS, Predictive Analytics: Moving Out of Square One Moderator: Jean-Marc Fix, FSA, MAAA Presenters: Jean-Marc Fix, FSA, MAAA Jeffery Robert Huddleston, ASA, CERA, MAAA Predictive Modeling: Getting
More informationIntroduction to R Software
1. Introduction R is a free software environment for statistical computing and graphics. It is almost perfectly compatible with S-plus. The only thing you need to do is download the software from the internet
More informationDescription/History Objects/Language Description Commonly Used Basic Functions. More Specific Functionality Further Resources
R Outline Description/History Objects/Language Description Commonly Used Basic Functions Basic Stats and distributions I/O Plotting Programming More Specific Functionality Further Resources www.r-project.org
More informationDecision Support Risk handout. Simulating Spreadsheet models
Decision Support Models @ Risk handout Simulating Spreadsheet models using @RISK 1. Step 1 1.1. Open Excel and @RISK enabling any macros if prompted 1.2. There are four on line help options available.
More informationEric Pitman Summer Workshop in Computational Science
Eric Pitman Summer Workshop in Computational Science 1. The R command line; using variables Jeanette Sperhac VIDIA Dashboard: RStudio Tool R Practical Matters R is case sensitive (R!= r) Command line prompt
More informationStatistics 13, Lab 1. Getting Started. The Mac. Launching RStudio and loading data
Statistics 13, Lab 1 Getting Started This first lab session is nothing more than an introduction: We will help you navigate the Statistics Department s (all Mac) computing facility and we will get you
More informationRelease notes for StatCrunch mid-march 2015 update
Release notes for StatCrunch mid-march 2015 update A major StatCrunch update was made on March 18, 2015. This document describes the content of the update including major additions to StatCrunch that were
More informationStat 290: Lab 2. Introduction to R/S-Plus
Stat 290: Lab 2 Introduction to R/S-Plus Lab Objectives 1. To introduce basic R/S commands 2. Exploratory Data Tools Assignment Work through the example on your own and fill in numerical answers and graphs.
More informationData and Function Plotting with MATLAB (Linux-10)
Data and Function Plotting with MATLAB (Linux-10) This tutorial describes the use of MATLAB for general plotting of experimental data and equations and for special plots like histograms. (Astronomers -
More informationChapter 5snow year.notebook March 15, 2018
Chapter 5: Statistical Reasoning Section 5.1 Exploring Data Measures of central tendency (Mean, Median and Mode) attempt to describe a set of data by identifying the central position within a set of data
More informationLab 1 Introduction to R
Lab 1 Introduction to R Date: August 23, 2011 Assignment and Report Due Date: August 30, 2011 Goal: The purpose of this lab is to get R running on your machines and to get you familiar with the basics
More informationDr. Barbara Morgan Quantitative Methods
Dr. Barbara Morgan Quantitative Methods 195.650 Basic Stata This is a brief guide to using the most basic operations in Stata. Stata also has an on-line tutorial. At the initial prompt type tutorial. In
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 informationEcon Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva
Econ 329 - Stata Tutorial I: Reading, Organizing and Describing Data Sanjaya DeSilva September 8, 2008 1 Basics When you open Stata, you will see four windows. 1. The Results window list all the commands
More informationA Mini Manual for the Spreadsheet Calculator Program SC. John E. Floyd University of Toronto
A Mini Manual for the Spreadsheet Calculator Program SC John E. Floyd University of Toronto January 4, 2002 1 Command and Input Modes At every point time SC is either in command mode or data input mode.
More informationComputer 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 informationUsing Excel, Chapter 2: Descriptive Statistics
1 Using Excel, Chapter 2: Descriptive Statistics Individual Descriptive Statistics using Excel Functions 2 A Summary of Descriptive Statistics Using the Analysis ToolPak (Windows Users) 3 A Summary of
More informationR Visualizing Data. Fall Fall 2016 CS130 - Intro to R 1
R Visualizing Data Fall 2016 Fall 2016 CS130 - Intro to R 1 mtcars Data Frame R has a built-in data frame called mtcars Useful R functions length(object) # number of variables str(object) # structure of
More informationInstalling and Using R
The National Animal Nutrition Program (NANP) Modeling Committee A National Research Support Project (NRSP-9) Supported by the Experiment Station Committee on Organization and Policy, The State Agricultural
More informationIntro to R. Fall Fall 2017 CS130 - Intro to R 1
Intro to R Fall 2017 Fall 2017 CS130 - Intro to R 1 Intro to R R is a language and environment that allows: Data management Graphs and tables Statistical analyses You will need: some basic statistics We
More informationPython Programming Exercises 1
Python Programming Exercises 1 Notes: throughout these exercises >>> preceeds code that should be typed directly into the Python interpreter. To get the most out of these exercises, don t just follow them
More informationTutorial 3: Probability & Distributions Johannes Karreth RPOS 517, Day 3
Tutorial 3: Probability & Distributions Johannes Karreth RPOS 517, Day 3 This tutorial shows you: how to simulate a random process how to plot the distribution of a variable how to assess the distribution
More informationCommand Line and Python Introduction. Jennifer Helsby, Eric Potash Computation for Public Policy Lecture 2: January 7, 2016
Command Line and Python Introduction Jennifer Helsby, Eric Potash Computation for Public Policy Lecture 2: January 7, 2016 Today Assignment #1! Computer architecture Basic command line skills Python fundamentals
More informationThe goal of this handout is to allow you to install R on a Windows-based PC and to deal with some of the issues that can (will) come up.
Fall 2010 Handout on Using R Page: 1 The goal of this handout is to allow you to install R on a Windows-based PC and to deal with some of the issues that can (will) come up. 1. Installing R First off,
More informationExcel 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 informationStat 302 Statistical Software and Its Applications Introduction to R
Stat 302 Statistical Software and Its Applications Introduction to R Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 23 Statistical Software There are many, many statistical
More informationR for IR. Created by Narren Brown, Grinnell College, and Diane Saphire, Trinity University
R for IR Created by Narren Brown, Grinnell College, and Diane Saphire, Trinity University For presentation at the June 2013 Meeting of the Higher Education Data Sharing Consortium Table of Contents I.
More informationMATLAB INTRODUCTION. Matlab can be used interactively as a super hand calculator, or, more powerfully, run using scripts (i.e., programs).
L A B 6 M A T L A B MATLAB INTRODUCTION Matlab is a commercial product that is used widely by students and faculty and researchers at UTEP. It provides a "high-level" programming environment for computing
More informationBIOSTATS 640 Spring 2018 Introduction to R Data Description. 1. Start of Session. a. Preliminaries... b. Install Packages c. Attach Packages...
BIOSTATS 640 Spring 2018 Introduction to R and R-Studio Data Description Page 1. Start of Session. a. Preliminaries... b. Install Packages c. Attach Packages... 2. Load R Data.. a. Load R data frames...
More informationGetting Started. Slides R-Intro: R-Analytics: R-HPC:
Getting Started Download and install R + Rstudio http://www.r-project.org/ https://www.rstudio.com/products/rstudio/download2/ TACC ssh username@wrangler.tacc.utexas.edu % module load Rstats %R Slides
More informationBIO5312: R Session 1 An Introduction to R and Descriptive Statistics
BIO5312: R Session 1 An Introduction to R and Descriptive Statistics Yujin Chung August 30th, 2016 Fall, 2016 Yujin Chung R Session 1 Fall, 2016 1/24 Introduction to R R software R is both open source
More informationA Quick Introduction to R
Math 4501 Fall 2012 A Quick Introduction to R The point of these few pages is to give you a quick introduction to the possible uses of the free software R in statistical analysis. I will only expect you
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 informationMIS2502: Data Analytics Introduction to Advanced Analytics and R. Jing Gong
MIS2502: Data Analytics Introduction to Advanced Analytics and R Jing Gong gong@temple.edu http://community.mis.temple.edu/gong The Information Architecture of an Organization Now we re here Data entry
More informationData Management Project Using Software to Carry Out Data Analysis Tasks
Data Management Project Using Software to Carry Out Data Analysis Tasks This activity involves two parts: Part A deals with finding values for: Mean, Median, Mode, Range, Standard Deviation, Max and Min
More informationBGGN 213 Working with R packages Barry Grant
BGGN 213 Working with R packages Barry Grant http://thegrantlab.org/bggn213 Recap From Last Time: Why it is important to visualize data during exploratory data analysis. Discussed data visualization best
More informationStata v 12 Illustration. First Session
Launch Stata PC Users Stata v 12 Illustration Mac Users START > ALL PROGRAMS > Stata; or Double click on the Stata icon on your desktop APPLICATIONS > STATA folder > Stata; or Double click on the Stata
More informationExercise 1: Introduction to Stata
Exercise 1: Introduction to Stata New Stata Commands use describe summarize stem graph box histogram log on, off exit New Stata Commands Downloading Data from the Web I recommend that you use Internet
More informationIntro to R h)p://jacobfenton.s3.amazonaws.com/r- handson.pdf. Jacob Fenton CAR Director InvesBgaBve ReporBng Workshop, American University
Intro to R h)p://jacobfenton.s3.amazonaws.com/r- handson.pdf Jacob Fenton CAR Director InvesBgaBve ReporBng Workshop, American University Overview Import data Move around the file system, save an image
More informationAssignment 3 due Thursday Oct. 11
Instructor Linda C. Stephenson due Thursday Oct. 11 GENERAL NOTE: These assignments often build on each other what you learn in one assignment may be carried over to subsequent assignments. If I have already
More informationThe nuts and bolts of Sweave/Knitr for reproducible research
The nuts and bolts of Sweave/Knitr for reproducible research Marcus W. Beck ORISE Post-doc Fellow USEPA NHEERL Gulf Ecology Division, Gulf Breeze, FL Email: beck.marcusepa.gov, Phone: 850 934 2480 January
More information