R Workshop #2 Basic Data Analysis. What we did last week: Understand the basics of how R works Generated objects (vectors, matrices, etc.) Read in data.

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

MICS4 Data Processing Workshop Multiple Indicator Cluster Surveys Data Processing Workshop SPSS general commands Overview.
ENG004 ALGORITHMS & INT. TO PROGRAMMING Week 3 “An introduction to arrays and matrices” Ahmet Anıl Dindar
Dependent t-tests When the two samples are correlated (i.e. not independent) 1.
Maths for Computer Graphics
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
A Simple Guide to Using SPSS© for Windows
Statistical Analysis of Transaction Dataset Data Visualization Homework 2 Hongli Li.
Lecture 7 Sept 19, 11 Goals: two-dimensional arrays (continued) matrix operations circuit analysis using Matlab image processing – simple examples Chapter.
Lecture 6 Sept 15, 09 Goals: two-dimensional arrays matrix operations circuit analysis using Matlab image processing – simple examples.
MGTO 324 Workshop 3: SPSS Data Management. Activity 1 Collect the following information from any 40 “subjects” Age Estimate it if you cannot access the.
Subspaces, Basis, Dimension, Rank
Intro to Matrices Don’t be scared….
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
SIMPLE TWO GROUP TESTS Prof Peter T Donnan Prof Peter T Donnan.
A Flight Plan for Studying Statistics. The Scientific Procedure 1) Concepts (empirical and hypothetical) 2)Operational Definitions (measurement and procedure)
SPSS Overview. The opening screen 2 The SPSS windows 3.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Developed By Information Technology Services University Of Saskatchewan.
Recap of data analysis and procedures Food Security Indicators Training Bangkok January 2009.
General ideas to communicate Dynamic model Noise Propagation of uncertainty Covariance matrices Correlations and dependencs.
Getting Started with Stata 2/11/2010 Tom Tomberlin Nealia Khan Learning Technologies Center Harvard Graduate School of Education.
Exercise 1: IF/ELSE Step 1: Open NotePad++ and create “number.php” in your webspace Step 2: Write codes to do the following 1.Generate a random number.
Large Scale Data Representation Erik Goodman Daniel Kapellusch Brennen Meland Hyunjae Park Michael Rogers.
March 7, 2006Lecture 8aSlide #1 Matrix Algebra, or: Is this torture really necessary?! What for? –Permits compact, intuitive depiction of regression analysis.
Data Lab # 4 June 16, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
Non-parametric Tests e.g., Chi-Square. When to use various statistics n Parametric n Interval or ratio data n Name parametric tests we covered Tuesday.
Understanding SPSS Brandon Aragon, Research Technician Eric Cazares, Graduate Assistant Claudia Alvarado, Graduate Assistant Workshop Series October.
3.6 Solving Systems Using Matrices You can use a matrix to represent and solve a system of equations without writing the variables. A matrix is a rectangular.
PSC 47410: Data Analysis Workshop  What’s the purpose of this exercise?  The workshop’s research questions:  Who supports war in America?  How consistent.
Systems of Equations and Inequalities Ryan Morris Josh Broughton.
DTC Quantitative Methods Summary of some SPSS commands Weeks 1 & 2, January 2012.
Systems of Linear Equations in Vector Form Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Programming in R Managing Variables. Managing variables in R In this session I will show you how to: Rename, drop and keep variables Create new variables.
Chapter 1 Section 1.5 Matrix Operations. Matrices A matrix (despite the glamour of the movie) is a collection of numbers arranged in a rectangle or an.
1.7 Linear Independence. in R n is said to be linearly independent if has only the trivial solution. in R n is said to be linearly dependent if there.
1.1 The row picture of a linear system with 3 variables.
Chapter 4 Minitab Recipe Cards. Correlation coefficients Enter the data from Example 4.1 in columns C1 and C2 of the worksheet.
Finishing up Chapter 5. Will this code enter the if statement? G=[30,55,10] if G
Understanding SPSS Workshop Series February 18, 2016.
Chapter 6: Modifying and Combining Data Sets  The SET statement is a powerful statement in the DATA step DATA newdatasetname; SET olddatasetname;.. run;
Statistics 350 Lecture 13. Today Last Day: Some Chapter 4 and start Chapter 5 Today: Some matrix results Mid-Term Friday…..Sections ; ;
Notes Over 4.2 Finding the Product of Two Matrices Find the product. If it is not defined, state the reason. To multiply matrices, the number of columns.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Pinellas County Schools
Chapter 4 Selected Nonparemetric Techniques: PARAMETRIC VS. NONPARAMETRIC.
Matrices and systems of Equations. Definition of a Matrix * Rectangular array of real numbers m rows by n columns * Named using capital letters * First.
Understanding SPSS II Workshop Series August 9, 2016.
Workshop Series May 17, 2017 Brandon Aragon
DATA MANAGEMENT MODULE: USING SQL in R
Multivariate Analysis
L8 inverse of the matrix.
Systems of Linear Equations
به نام خدا كاربرد كامپيوتر در مهندسي صنايع نرم افزار spss
DATA MANAGEMENT MODULE: USING SQL in R
DATA MANAGEMENT MODULE: Managing Variables
Bivariate Testing (Chi Square)
HMI 7530– Programming in R Introduction
STAT 4030 – Programming in R Introduction
DATA MANAGEMENT MODULE: Managing Variables
1.3 Vector Equations.
Communication and Coding Theory Lab(CS491)
Computing A Variable Mean
Data Management Module: Creating, Adding and Dropping Variables
Ch 9-10 Subsetting Ordering Array operations Iteration
数据的矩阵描述.
Cases. Simple Regression Linear Multiple Regression.
Statistics 101 CORRELATION Section 3.2.
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”
Presentation transcript:

R Workshop #2 Basic Data Analysis

What we did last week: Understand the basics of how R works Generated objects (vectors, matrices, etc.) Read in data in a variety of ways Looked at parts of our data

What we will do this week: Creating variables Recoding variables Renaming variables Subsetting data Descriptive statistics Looping through data Correlations, T.Tests, and Crosstabs Simple linear models

Looping You want to do something to all the rows or columns in your data (create a variable, recode a variable….) that is not a simple operation You tell R the conditions in which it should use your command: – for (i in 1:10){ } – if ( x > 9) { } – ifelse() – while()

Next Week Merging (and matching) datasets Data visualization What else?