Setting up R Project Link to download R: Link to download R console:

Slides:



Advertisements
Similar presentations
Browse the codebook - to see the list of variables on which you can do statistics select the “Browse codebook in this window” option and then click “Start”
Advertisements

Introduction to Stats Honors Analysis. Data Analysis Individuals: Objects described by a set of data. (Ex: People, animals, things) Variable: Any characteristic.
R for Macroecology Aarhus University, Spring 2011.
Refresh- Caitlin Collins, Thibaut Jombart MRC Centre for Outbreak Analysis and Modelling Imperial College London Genetic data analysis using
Introduction to Matlab
Aim: How do we find confidence interval using SPSS? SPSS Assignment 3 due Thursday.
Lecture 2 Describing Data II ©. Summarizing and Describing Data Frequency distribution and the shape of the distribution Frequency distribution and the.
Lecture 2 PY 427 Statistics 1 Fall 2006 Kin Ching Kong, Ph.D
Tutorial: Crime & Violence Data Cubes at NCOVR Data Center Last Update:September 12, 2005 by:Jacqueline Cohen.
Total Population of Age (Years) of People that Smoke
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
Sampling Distributions & Standard Error Lesson 7.
Week 7. Lecture 2 Functions, Arrays, PHP&MySQL. Function with More than one argument and a return statement For a function to return a value, the return.
R Brown-Bag Seminar 2: Hands-on Antony Karanja Ndungu Research Methods Group-ICRAF.
R Programming Yang, Yufei. Normal distribution.
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
Apperson (model 1200)  Instant student performance data  Quickly determine objectives requiring remediation  PM Session data as simple as cut/paste.
Total Population of Age (Years) of People. Pie Chart of Males and Females that Smoke Systematic Gender Sample Total Population: 32.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Aim: How do we analyze data with a two-way table?
By max guerrero,bryan hernandez,caleb Portales  Spreadsheets are set up like tables with information running across rows and down columns. You could.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Chapter 11 Chi-Square Procedures 11.2 Contingency Tables; Association.
Arrays Chapter 7. 2 Declaring and Creating Arrays Recall that an array is a collection of elements all of the _____________ Array objects in Java must.
MATH 2311 Help Using R-Studio. To download R-Studio Go to the following link: Follow the instructions for your computer.
Does a Person’s Income Relate to Their Age?. Variables  Annual Income Measured in Dollars per Year  Age of Individual Measured in Years.
1 Take a challenge with time; never let time idles away aimlessly.
Descriptive Statistics using R. Summary Commands An essential starting point with any set of data is to get an overview of what you are dealing with You.
(Unit 6) Formulas and Definitions:. Association. A connection between data values.
Test of Independence Tests the claim that the two variables related. For example: each sample (incident) was classified by the type of crime and the victim.
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
Graphing options for Quantitative Data
Test of independence: Contingency Table
Topic 6: Proportions and Probabilities
Chapter 12 Chi-Square Tests and Nonparametric Tests
CHAPTER 26 Comparing Counts.
Arrays Chapter 7.
Chi-Square hypothesis testing
R programming language
Introduction to R Samal Dharmarathna.
Bivariate Data – Contingency Tables
Exploring, Displaying, and Examining Data
Chapter 11 Chi-Square Tests.
Press <spacebar> to continue tutorial
MTH 217Competitive Success/snaptutorial.com
MTH 217 Education for Service-- snaptutorial.com
An Introduction to Statistics
Reading a CSV file in R.
Relations in Categorical Data
Code is on the Website Outline Comparison of Excel and R
CSCI N207 Data Analysis Using Spreadsheet
Arrays Chapter 7.
Chapter 11 Chi-Square Tests.
CSCI N317 Computation for Scientific Applications Unit R
Descriptive Analysis and Presentation of Bivariate Data
Review for Test1.
Lesson 13.1 How do you find the probability of an event?
Comparing Two Variables
R Course 1st Lecture.
Section Way Tables and Marginal Distributions
Inference for Two Way Tables
Two Way Frequency Table
Inference for Two-way Tables
Scientific Process: Organizing Data
Chapter 11 Chi-Square Tests.
The Normal Distribution
Simulate Multiple Dice
Presentation transcript:

Setting up R Project Link to download R: https://www.rstudio.com/products/rstudio/download/ Link to download R console: https://www.r-project.org/ Useful links for R: https://www.rdocumentation.org/ https://cran.r-project.org/manuals.html

csv. file Example of csv. file link: http://professormo.com/statClub.html

Setting up the directory of opening the file

setwd(dir) setwd (Set Working Directory) returns the current directory before the change, invisibly and with the same conventions as getwd. It will give an error if it does not exist. Variables can then be accessed by their name only.

How to find the directory of file

Accessing the csv. file

Attach the file

Access the first row of the values in csv. file

names(file object name) Returns the first row of values

Showing the overall point above 2 colleges

boxplot(varA~varB) Produce box-and-whisker plot(s) of the given (grouped) values. varA : The variable that represent the number ~ : the connection to varA and varB varB : The object that compares

Showing the elements in “Division” column

levels(var) levels provides access to the levels attribute of a variable. The first form returns the value of the levels of its argument and the second sets the attribute.

T-test of overall and college

t.test(varA~varB) Performs one and two sample t-tests on vectors of data. varA: The value that is using for calculation varB: The binary variable that defines the populations being compared

Left-tailed t-test

Showing the table of gender in Division

myTable <-table(varA, varB): table: table uses the cross-classifying factors to build a contingency table of the counts at each combination of factor levels. <- : assignment operator myTable: the variable that contains all the collection of

Showing the histograms of easiness

hist(dataName) hist: The generic function hist computes a histogram of the given data values. dataName: the value that is calculated for the histogram.