Using Excel Biostatistics 212 Lecture 4. Housekeeping Questions about Lab 3? –replace vs. recode –Cross-checking/recoding missing values –Analysis of.

Slides:



Advertisements
Similar presentations
Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
Advertisements

Intermediate Formulas & Functions Instructor: Rachel Baltus.
SPREADSHEETS Chapter 3 By Michael & Russell What are Spreadsheets used for? SIMPLE CALCULATIONS SIMPLE CALCULATIONS (shop’s weekly profits) COMPLEX CALCULATIONS.
8. Introduction to Spreadsheet CSCI N207 Data Analysis Using Spreadsheet Lingma Acheson Department of Computer and Information Science,
Using Excel Biostatistics 212 Lecture 4. Housekeeping Questions about Lab 3? –replace vs. recode Final Project Dataset! –“Housekeeping” commands vs. data.
Using Excel Biostatistics 212 Lecture 4. Housekeeping Finish Lab 2 today and/or start Lab 3 Mac Addendum Copying and pasting from Stata.
Spreadsheets A spreadsheet package is a general purpose computer package that is designed to perform calculations. A spreadsheet is a table which is divided.
Microsoft Office Illustrated Fundamentals Unit H: Using Complex Formulas, Functions, and Tables.
Lesson 14 Creating Formulas and Charting Data
Excel Using Formulas and Functions Microsoft Office 2010 Fundamentals 1.
3-dimensional formula A formula that refers to cells in other worksheets.
Collin College Excel Exam Review. True In Excel worksheets, rows are designated using numbers while columns are designated using letters.
Objectives 1.Identify the functions of a spreadsheet 2.Identify how spreadsheets can be used. 3.Explain the difference in columns and rows. 4.Locate specific.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 2 1 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
Unit G: Using Complex Formulas, Functions, and Tables Microsoft Office Illustrated Fundamentals.
Studying with Technology Excel Formulas and Functions By Ian Cole Lecturer in Information & Communication Technology.
1 Computing for Todays Lecture 8 Yumei Huo Spring 2006.
1 Excel Lesson 3 Using Formulas and Functions Microsoft Office 2010 Fundamentals Story / Walls.
Introduction to Microsoft Excel
Lecture 1 Introduction to Excel OVERVIEW Introduction Basics of Cells Modifying Columns and Rows Formatting Cells Saving Working with Formulas Basics.
General Purpose Packages Spreadsheets. What is a Spreadsheet? A Spreadsheet is a computer program used mainly for recording mathematical data such as.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
XP New Perspectives on Microsoft Excel 2002 Tutorial 2 1 Microsoft Excel 2002 Tutorial 2 – Working With Formulas and Functions.
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
Excel 2010 Formulas and Functions One of Excel's most useful features is that it allows users to create custom formulas to perform calculations on their.
Microsoft Excel Diane M. Coyle Spring 2009 CS 105.
XP Abdul Hameed 1 Microsoft Office Excel 2013 Tutorial 2 – Working With Formulas and Functions.
Using Excel Biostatistics 212 Lecture 4. Housekeeping Questions about Lab 3? Final Project Dataset! –Check in.
Applications Software. Applications software is designed to perform specific tasks. There are three main types of application software: Applications packages.
Microsoft Excel By: Dr. K.V. Vishwanath Professor, Dept. of C.S.E,
Spreadsheet A spreadsheet is the computer equivalent of a paper ledger sheet. It consists of a grid made from columns and rows. It is an environment that.
Excel Worksheet # 5 Class Agenda Formulas & Functions
P366: Lecture #1 Use of Excel for analysis Lei Chen, MD Jan 6, 2002.
Excel Ch 6 Review.
Introduction to Spreadsheets Program: Excel. Starting Excel Spreadsheets Spreadsheet –A grid of rows and columns used to make calculations. A spreadsheet’s.
Spreadsheets and Non- Spatial Databases Unit 4: Module 15, Lecture 1- Spreadsheet Software.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
Organizing a project, making a table Biostatistics 212 Lecture 7.
Organizing a project, making a table Biostatistics 212 Session 5.
Excel Project 2 Formulas, Functions, and Formatting.
Information Processing Notes for beginning our Excel Unit.
Foundation Excel Session II 1. In Session I… Recall basic Excel terminology Use appropriate techniques and keyboard shortcuts to input and edit data.
CREATING DATABASE Presenter: Jolanta Soltis. When to use Excel Use Excel when you: –Require a flat or non-relational view of your data (you do not need.
XP 1 Microsoft Office Excel 2003 Working With Formulas and Functions.
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
Introduction to Spreadsheets A spreadsheet is an electronic file used to organize related data and perform calculations. Example- Microsoft Excel. 1.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Lesson 12 Spreadsheets Unit 2—Using the Computer.
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 2 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
Intermediate Excel 2013 Gareth Johns IT Skills Development Advisor.
Microsoft Excel Prepared by the Academic Faculty Members of IT.
An electronic document that stores various types of data.
Ing. Martina Majorová, FEM SUA Statistics Lecture 2 – Introduction to MS Excel 2003.
Pages Appendix B: Review of ExcelChapter 3 Market Trends & Analysis IBM 320 CAL POLY POMONA IBM320 Market Trends and Analysis Maha Ghosn.
Computer Fundamentals Muhammadamin Daneshwar And Masoud Aras Computer Engineering Department Soran University Lecture 6.
April 9 th, Saturday PDP N° Malik Koné. I. Cells A. The Concept B. Properties, Types and Formats II. Spreadsheets A. Spreadsheet’s Elements B. Selection.
Spreadsheet I n Concepts & operations. Concepts n Workbook: Excel file n Worksheet: sheet n Row: 1-???? n Column: A - Z, AA - ?? n Cell n Cell address.
Institute of Management Studies
CSE111 Introduction to Computer Applications
Chapter 6 Modifying Cell Styles
TRACKER Contents Intro Excel 101 Math Operations Formulas 101.
Office tool for creating tables and charts
Superintendence Day April 18,2016
Computer Fundamentals
MS-Excel Part 1.
Microsoft Excel All editions of Microsoft office.
Unit G: Using Complex Formulas, Functions, and Tables
Spreadsheets and Data Management
Presentation transcript:

Using Excel Biostatistics 212 Lecture 4

Housekeeping Questions about Lab 3? –replace vs. recode –Cross-checking/recoding missing values –Analysis of a variable with missing values Stata considers missing values to be very large!!? –agecat with chi2 or “exact” vs. age with ttest Final Project Dataset! –Check in

Housekeeping Lab ends at 4pm…at least for the TA’s –Thanks to TA’s who stayed longer last Tuesday!

Today... Why are we talking about spreadsheets? Pro’s and Con’s of using a spreadsheet for: –Data management, Statistics, Calculating, Modeling, Tables, Figures Cells Formulas Cutting and pasting formulas Spreadsheet style Examples

Why spreadsheets? Excel is widely used, and for good reason –Store numbers and text –Calculations –Desktop graphics – Tables and Figures –Flexible creation of ledgers, models, other complex programs

Why spreadsheets? How is a spreadsheet different than Stata’s data editor? –Less structured –Formulas –Formatting

Why spreadsheets? How is a spreadsheet different than a database program like Access? –Less structured –Formula chains –Formatting

Pro’s and Con’s of spreadsheets For data management –Pro’s Easy start – just name columns and start typing –Con’s No structure Can’t sort, filter or query data “Flat” file – no relational table structure allowed

Pro’s and Con’s of spreadsheets For statistical analysis –Pro’s Easy start, if you know how to do formulas –Con’s Extremely limited range of options Difficult to document

Pro’s and Con’s of spreadsheets For calculating, or “modeling” –Pro’s Repetitive calculations easy Complex calculations easy –Con’s Simple, 1-time calculations not as fast as a calculator Sometimes hard to decipher in retrospect

Pro’s and Con’s of spreadsheets Tables and Figures – will discuss in Session 6

Cells The basic building block of a spreadsheet Can contain: –Numbers –Text –Dates, times, other special formats –“blanks” Start with 46 million blank cells! (230 cols x rows x 3 worksheets)

Cells, cont Enter anything you like into each cell (numbers, text, symbols, etc) using keyboard Contents displayed on spreadsheet Organized and named by column/row

Formulas Use when you want the contents of one cell to depend on the contents of other cells ALWAYS starts with: = (an “equals sign”)

Formulas Can contain: –Numbers –Text –References to cells –The usual math operators (+ - * / ^ ) –Built-in functions

Formulas Cell contents update automatically when a referenced cell content changes “Chains” of formulas make for flexible calculating

Formulas Contents of a cell displayed on spreadsheet The formula determining that content is displayed in the “formula box” Example

Formulas Types of formulas –Simple arithmetic operators +, -, *, /, ^ –Built-in functions LN(number) –Returns the natural log of a number ABS(number) –Returns the absolute value of a number SUM(range of cells) –Returns the sum of the values in the range –SUM(A5:A10) AVERAGE(range of cells) –Returns the average of the values in the range

Formulas Types of formulas –Built-in functions, con’t: STDEV(range of cells) –Returns the standard deviation NORMINV(probability, mean of dist, SD of dist) –Returns the z-value associated with a given probability… MAX(number1, number2, etc), MIN(…) PMT(int rate, #payments, principal)

Formulas Types of formulas –Logic IF(boolean, value 1, value 2) –Returns value 1 if TRUE, value 2 if FALSE –The value can be a number, an expression, a string, etc. AND(boolean, boolean, boolean…) –Returns TRUE if all booleans are true, otherwise FALSE OR(boolean, boolean, boolean…) –Returns TRUE if any booleans are true, otherwise FALSE

Formulas Types of formulas, cont –String manipulation LEFT(text, #characters) –Returns the left part of the string (the # of characters specified) –See also RIGHT(…) and MID(…) VALUE(text) –Converts a number in a string to an actual number (like “ destring ” in Stata) CONCATENATE(text1, text2,…) –Puts strings together –Misc NOW() –Returns the current date, time; see HOUR(…), etc ISBLANK(…), ISERROR(…), ISNUMBER(…)

Formulas Tips –Use parentheses IF(SUM(A5:A10)>5,1,IF(C9=“y”,2,3)) –Or do in multiple steps

Cutting/Copying and Pasting Cutting and Copying treat formulas differently!

Cutting and pasting formulas Excel assumes the cell references are ABSOLUTE, and you’re just moving the location of the formula cell Example

Copying and pasting formulas Excel assumes the cell references are RELATIVE Example Shortcut: drag little square in the corner…

Copying and pasting formulas If you want to FIX the position of a referenced cell, use $’s = A5 + $B$6 Example

Examples Repetitive calculations –Back-transforming linear regression coefficients Complex calculations –2 x 2 template –Converting “Plate” map to data for Telomere Length data Modeling –Mortgage calculator –Risk integrator –Figure 2 for LDL-lowering paper

Spreadsheet style Formatting –Text –Column width –Borders –Placement of stuff on the page

Spreadsheet style For models: –Inputs on the left, in red –Outputs on the right, in blue, boxed, bolded, etc –Calculations on other sheets –“Protect” all cells besides inputs Format/Cells…/Protection Tools/Protect

Take home points Understand cells and formulas Use copy/paste with and without fixed cells ($A$45) Good formatting adds significant value to your spreadsheet

Today in Lab… Practice with: –A repetitive calculation spreadsheet –A complex calculation spreadsheet –Introduction to making a figure with Excel NOTE: a “picture” of the answers are on the back sheet! Due before lecture next week Extra credit puzzle challenge – 2x2 excel template –Due Sept 21 th – to

To come… Next lecture –Epidemiologic analysis with Stata 2 x 2 tables, confounding and interaction Epitab commands Logistic regression introduction