Math 263 Excel Assignment 3

Similar documents
1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

Brief Guide on Using SPSS 10.0

Introduction to Excel Workshop

EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression

Using RExcel and R Commander

Chapter 2 Assignment (due Thursday, April 19)

0 Graphical Analysis Use of Excel

Chemistry 1A Graphing Tutorial CSUS Department of Chemistry

Math 121 Project 4: Graphs

Excel Primer CH141 Fall, 2017

Scatterplot: The Bridge from Correlation to Regression

Project 11 Graphs (Using MS Excel Version )

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Data Management Project Using Software to Carry Out Data Analysis Tasks

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Microsoft Excel 2007 Creating a XY Scatter Chart

Minitab 17 commands Prepared by Jeffrey S. Simonoff

Exercise: Graphing and Least Squares Fitting in Quattro Pro

Further Maths Notes. Common Mistakes. Read the bold words in the exam! Always check data entry. Write equations in terms of variables

How to Make Graphs in EXCEL

SAMLab Tip Sheet #5 Creating Graphs

Introduction to CS databases and statistics in Excel Jacek Wiślicki, Laurent Babout,

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Dummy variables for categorical predictive attributes

Activity Graphical Analysis with Excel and Logger Pro

Homework 1 Excel Basics

Introduction to R, Github and Gitlab

Statistics Lab #7 ANOVA Part 2 & ANCOVA

Advanced Curve Fitting. Eric Haller, Secondary Occasional Teacher, Peel District School Board

Applied Regression Modeling: A Business Approach

NEURAL NETWORKS. Cement. Blast Furnace Slag. Fly Ash. Water. Superplasticizer. Coarse Aggregate. Fine Aggregate. Age

More Skills 12 Create Web Queries and Clear Hyperlinks

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA

SPSS for Survey Analysis

Practice in R. 1 Sivan s practice. 2 Hetroskadasticity. January 28, (pdf version)

Microsoft Word for Report-Writing (2016 Version)

STAT 311 (3 CREDITS) VARIANCE AND REGRESSION ANALYSIS ELECTIVE: ALL STUDENTS. CONTENT Introduction to Computer application of variance and regression

Excel Spreadsheets and Graphs

Dealing with Data in Excel 2013/2016

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

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

Optimization in One Variable Using Solver

Excel 2010 with XLSTAT

Put the Graphs for Each Health Plan on the Same Graph

610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison

Checking whether the protocol was followed: gender and age 51

Chemistry Excel. Microsoft 2007

Statistical Analysis Using SPSS for Windows Getting Started (Ver. 2018/10/30) The numbers of figures in the SPSS_screenshot.pptx are shown in red.

Creating a data file and entering data

Quick Start Guide Jacob Stolk PhD Simone Stolk MPH November 2018

Introduction to Minitab 1

S-PLUS INSTRUCTIONS FOR CASE STUDIES IN THE STATISTICAL SLEUTH

RSG online program documentation

Solution to Bonus Questions

Show how the LG-Syntax can be generated from a GUI model. Modify the LG-Equations to specify a different LC regression model

INTRODUCTION TO SPSS OUTLINE 6/17/2013. Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN Phone:

Applied Statistics and Econometrics Lecture 6

Gelman-Hill Chapter 3

Applied Regression Modeling: A Business Approach

Stat 579: More Preliminaries, Reading from Files

Year 10 General Mathematics Unit 2

R for IR. Created by Narren Brown, Grinnell College, and Diane Saphire, Trinity University

Stat 5303 (Oehlert): Response Surfaces 1

CS130/230 Lecture 6 Introduction to StatView

For more info and downloads go to: Gerrit Stols

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables

Working with Charts Stratum.Viewer 6

Introduction to creating and working with graphs

Here is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very

Spreadsheet View and Basic Statistics Concepts

[1] CURVE FITTING WITH EXCEL

17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA Document Variables Code Variables... 1

A (very) brief introduction to R

Tutorial 3 - Performing a Change-Point Analysis in Excel

Introduction. About this Document. What is SPSS. ohow to get SPSS. oopening Data

Graphing Single Subject Research Data. AAC Colloquium October 18 th, 2017

Your Name: Section: INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression

Multiple Group CFA in AMOS (And Modification Indices and Nested Models)

Plotting Graphs. Error Bars

Intermediate SAS: Statistics

SPSS. (Statistical Packages for the Social Sciences)

SPSS QM II. SPSS Manual Quantitative methods II (7.5hp) SHORT INSTRUCTIONS BE CAREFUL

Data Analysis Through Modeling: Thinking and Writing in Context Supplement: Using R and R Commander

UW Department of Chemistry Lab Lectures Online

Getting Started with JMP at ISU

Statistical Package for the Social Sciences INTRODUCTION TO SPSS SPSS for Windows Version 16.0: Its first version in 1968 In 1975.

A Simple Guide to Using SPSS (Statistical Package for the. Introduction. Steps for Analyzing Data. Social Sciences) for Windows

An introduction to SPSS

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS

Chapter One: Getting Started With IBM SPSS for Windows

Probabilistic Analysis Tutorial

Non-linear regression tutorial

8. MINITAB COMMANDS WEEK-BY-WEEK

Salary 9 mo : 9 month salary for faculty member for 2004

Reference and Style Guide for Microsoft Excel

Regression Analysis and Linear Regression Models

W7 DATA ANALYSIS 2. Your graph should look something like that in Figure W7-2. It shows the expected bell shape of the Gaussian distribution.

Lab #13 - Resampling Methods Econ 224 October 23rd, 2018

ICT & MATHS. Excel 2003 in Mathematics Teaching

INTRODUCTION to. Program in Statistics and Methodology (PRISM) Daniel Blake & Benjamin Jones January 15, 2010

Transcription:

ath 263 Excel Assignment 3 Sections 001 and 003 Purpose In this assignment you will use the same data as in Excel Assignment 2. You will perform an exploratory data analysis using R. You shall reproduce a series of graphs included for reference in this document. Software Excel with the RExcel plugin installed. Review - Instructions to use the RExcel plugin 1. Open Excel. 2. Go to Add-Ins tab; you should see now the RExcel tab. 3. Choose Start R from the RExcel tab. 4. After R started after a few seconds, choose RCommander > With Excel enus. 5. You should see a menu of RExcel commands which you will use. Create an R data frame 1. Select all data in the spreadsheet, including the labels (A10:E664). 2. Right-click to see the context menu. 3. Select Put R Dataframe. Name the dataframe EV. 4. Now your data are available for analysis. Change the sex and smoke variables to categorical In the original spreadsheed, there are columns sex and smoke. The data in these columns indicates, of course, the gender of the child, and whether the child smokes or not. However, the data are 0 and 1, which is confusing, because these are numbers. In the dataframe you have created, variables sex and smoke are numerical. You need to convert them to categorical by using the following steps: 1. Select Data > anage variables in active data set > Recode variables. 2. Choose variable sex. 3. Specify sex as new variable name (overwrite variable sex ). 4. Type in the bottom window: 0=, 1= (that is, means girl, means boy ) 5. Press OK. Confirm overwriting of the sex variable.

6. Repeat steps 1-5 with the smoke variable, but in step 4 use: 0= S, 1= N (that is, S means Smoker and N means Non-Smoker ). Now type EV in the top RCommander window, and press the Submit button. In the bottom window you should see the data: > EV age EV height sex smoke 1 9 1.708 57.0 S 2 8 1.724 67.5 S 3 7 1.720 54.5 S 4 9 1.558 53.0 S. That is, the variables sex and smoke were recoded to use new symbols (letters) to denote categories, rather than numbers. Also, now R understands that sex and smoke are categorical variables. This fact is reflected in plots, as will be seen below. Use matrix plot function to quickly explore the data 1. Choose Graphs > Scatterplot atrix from the RExcel menus. 2. When the option window appears, accept all 3 variables. 3. Click on the Plot by groups button and select sex to group points by gender (girls and boys will be plotted with different markers, circles and triangles) 4. Once the graph appears, choose ile > Copy to clipboard > As etafile. 5. Paste in your document. 6. The result is visible below. The scatterplot matrix is a very useful kind of plot, as you can quickly see the relationships, their directions, and the smoothed histograms for all variables involved. You have also divided the data using sex as factor.

1 2 3 4 5 age 1 2 3 4 5 EV height 45 50 55 60 65 70 75 45 50 55 60 65 70 75 Conduct regression of EV on age 1. Select Statistics > it model > Linear Regression 2. Copy the results from either the RCommander bottom window or transfer the output to Excel first by using the Get R Output command in the context menu (right-click while pointing at some empty block of cells). 3. Please keep all information, even the pieces that you don t yet understand. 4. You will notice familiar slope and intercept of the regression line, and R-squared value. Call: lm(formula = age ~ EV, data = EV) Residuals:

in 1Q edian 3Q ax -4.9675-1.2974-0.2618 1.0462 7.5116 Coefficients: Estimate Std. Error t value Pr(> t ) (Intercept) 3.13585 0.24220 12.95 <2e-16 *** EV 2.57714 0.08726 29.53 <2e-16 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Residual standard error: 1.933 on 652 degrees of freedom ultiple R-squared: 0.5722, Adjusted R-squared: 0.5716 -statistic: 872.2 on 1 and 652 D, p-value: < 2.2e-16 The XY conditioning plot The conditioning plot uses categorical variables to provide additional information about the data (you should have no trouble figuring out how it works). Here is how it is created: 1. Choose Graphs > XY Conditioning plot 2. Where the dialog pops up, choose the Group Variables to be both sex and smoke. The result is below for reference.

S S 6 5 4 3 2 1 EV 6 N N 5 4 3 2 1 age