Tutorial: Homework Assignment Week 1 Purposes: • Use Excel • Load and embed SPC Macro into Excel • Create Histograms from Data Sets • Create Histograms on your “Own” QI Project Data Homework Files Test Dataset Contents: File 1= Number of pneumonia patients per week File 2 = Number of non-deaths between deaths File 3 = Red bead game (#100) - 500 draws File 4 = Length of stay by delivery type (vaginal & C-section) File 5 = Breast cancer screening Excel 2010 2 Access Macro and Data Sets The datasets are found on the session cd in a folder labeled: “Excel Homework Files” It is easiest to copy these files to your own computer*. To do this: • Select all the files • Right click • Select “Copy” • Paste the files in a new folder, or on your desktop (right click, “Paste”) * If you do not copy the files, you may still view them from the cd, but if any changes are made and you wish to save them, you will have to do so in a folder on your own computer. Excel 2010 3 Load Macro into Excel • Open Excel (spreadsheet should be blank) • Click the office button and select open • Find the folder where the macro is saved • Press the arrow to the right of “Files of type” and select “All Files” • Select “SPC Macros AddIn rev. 1.12.2.xla” and open • If prompted with a security notice be sure to select “Enable Macros” Excel 2010 4 Embed Macro into Excel (optional) If you wish to use the macro again at a later time, you will have to repeat the steps on slide 4 each time Excel is opened. If you would like to embed the macro in Excel so it loads automatically each time Excel is opened, follow the steps in slides 5-7 • Click the file button and select “Options” Excel 2010 5 Embed Macro into Excel (cont’d) • Select the “Add-Ins” tab Excel 2010 • Press the “Go” button at the bottom of the Add-Ins screen 6 Embed Macro into Excel (cont’d) • Press the “Browse” button • Locate where you have saved the macro, select it, and press OK Excel 2010 • Make sure the SPC Macros AddIn rev. 1.12.2.xla box is checked, and press “OK” 7 Open Data Sets • Open the data sets (spreadsheets) by clicking the file button and selecting open. Excel 2007 • Find where you have saved the data sets and press the “open” button 8 Save Data Sets • If you have not already saved the files on your computer, you can open them by double clicking the file on the cd • Once you have opened the file, name the spreadsheet and save it with your other Excel homework files • Give each of the data sets a name and save them somewhere on your computer Excel 2010 9 Create Distribution with SPC Macro • Open file1 – number of pneumonia patients per week.xls and select the data in column B (hint: if you select the first cell in the column and then press ctrl + shift + down arrow key, Excel will select all data in the column until it arrives at a blank cell) • Select SPC Macro under “Add-ins,” “Menu Commands” (if you do not see the macro, you may have to load it again – slide 4) • Select “Identify Distribution” • “Check” that the first row contains labels • Select “Recalc” to generate the distribution • Press OK to save the data generated by the macro Excel 2010 10 Distribution and Residuals • The tab that the SPC Macro generates should look something like this: • The data is saved upon pressing OK. Cancel erases the new tab. Excel 2010 11 Sort and Separate file4 – length of stay by delivery type.xls Open “file4 – length of stay by delivery type.xls” contains 2 sets of data. Each row of data represents a C-section or vaginal birth. We will organize the data according to delivery type and then separate them into 2 different data sets. • Make sure the “Home” tab is selected • Select columns A thru G • Select “Sort & Filter” under “Home” tab, selecting “Custom Sort” Excel 2010 12 Sort and Separate cont. file4 – length of stay by delivery type.xls • Once you have sorted by delivery type, cut and paste separate data into two separate columns, one for each delivery type • Create a distribution on each type using the LOS Hours Column Excel 2010 13 Create Histograms and Distribution Using Your “Own” QI Project Data 1. Determine what data element(s) you would like to see to decide current status of your process 2. Spend time with data analyst to determine location and access to data 3. Create a dataset 4. Create histograms from data sets 5. Write brief statement on graph about data “findings” 6. Bring graphs of “own” data to discuss in class