Introduction to StatKey 2016-17 03. Getting Data Into StatKey Introduction This handout assumes that you do not want to type in the data by hand. This handout shows you how to use Excel and cut and paste to get your data into StatKey.. 1. One Variable...... 2. One Quantitative and One Categorical Variable...... Note Two quantitative variables are handled similarly. 2 5 StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 1 of 8
1. One Variable Before You Begin Note the layout that StatKey requires: #1. The first row contains the variable name #2. Each data value is in its own row #3. At the bottom, Data has header row is be checked StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 2 of 8
Illustration One Variable 44 16 37 Step 1 Launch Excel. Into Column A of your worksheet put your values of your variable. Still in Excel, use FORMAT > CELLS to format the data in column A as text (for categorical variable) or as number, (for quantitative variable) as appropriate. When you are finished, your column A should look like the following: Step 2 Still in Excel, select the data rows in Column A. From the menu bar, click EDIT > COPY (cntrl-c) Step 3 Launch StatKey. > From the main menu, under Descriptive Statistics and Graphs, choose One Quantitative or One Categorical > Click on the tab at top, Edit Data StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 3 of 8
> Delete the data that StatKey has supplied, taking care to keep the data header (which you will edit later) > Paste your Excel Data (cntrl-v) and edit the data header. Check that the Data has header row is checked. > Click OK StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 4 of 8
2. One Quantitative and One Categorical Variable Note Two quantitative variables are handled similarly Before You Begin Note the layout that StatKey requires: #1. The first row contains the variable names, separated by a comma, in order: categorical, quantitative #2. Each data value is in its own row #3. At the bottom, Data has header row is checked StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 5 of 8
Illustration One Quantitative and One Categorical Variable Male, 44 Male, 16 Female, 37 Step 1 Launch Excel. Into Column A of your worksheet put your values of your first, categorical, variable. Still in Excel, use FORMAT > CELLS to format the data in column A as text. When you are finished, your column A should look like the following: Step 2 Into Column B of your worksheet put your values of your second, quantitative, variable. Still in Excel, use FORMAT > CELLS to format the data in column B as number. Choose decimal places: 2 When you are finished, your column B should look like the following: StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 6 of 8
Step 3 Concatenate. Now position your cursor in COLUMN C, row 1. Into the formula box, type = concatenate(a1,,,b1) You should now see in Column C, row 1: COLUMN C Male, 44 Step 4 Using EDIT > COPY > PASTE, repeat for the remaining rows of data. You should now see in Column C: Step 5 Copy. Still in Excel, select the data rows in Column C ONLY. From the menu bar, click EDIT > COPY (cntrl-c) StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 7 of 8
Step 6 Launch StatKey. > From the main menu, under Descriptive Statistics and Graphs, choose One Quantitative and One Categorical > Click on the tab at top, Edit Data > Delete the data that StatKey has supplied, taking care to keep the data header (which you will edit later) > Paste your Excel Data (cntrl-v) and edit the data header. Check that the Data has header row is checked. > Click OK StatKey handout 02 Fall 2016 Getting Data into StatKey.docx Page 8 of 8