This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ivStats tutorial to change height to a text variable. (Then change it back because we want to keep height as a numerical variable.) If you f orget how to do this, here is a reminder of the commands: From the main menu select DATA > CHANGE DATA TYPE Then, select the option that you want and fill in the dialog box. e. Recoding Data At times, we may want to take a quantitative variable and “categorize” it. This means to divide the individuals into groups based on their v alue of some quantitative variable. For example, we often place people into groups based on their age: “inf ants” might be individuals less than 1 year old, “toddlers” might be 1 and 2 year olds, “children” might be 3 to 10 years old, etc. W e’v e taken a quantitative variable (age) and “categorized” it (“inf ants”, “toddlers”, “children”, etc.). In our example, suppose we want to group individuals into two categories based on their heights. W e can call those 70 inches and taller “tall” and those under 70 inches “not tall”. Here’s how:
· Label column 4 (C4) as height grouped
· From the main menu, select DATA > CODE > NUMERIC TO TEXT
· In the popup window, move the cursor to the blank box next to "Code Data from Columns:" by clicking on that box. Select C2 (height in inches), or just type in height in inches.
· Mov e the cursor to the blank box below “Into Columns:” by Select C4 (height grouped), or just type in height grouped.
· Mov e the cursor to the first box under “Original Values:”. Type in 1:69.
· Mov e the cursor to the first box under “New:”. Type in not tall. (Note: not tall does not hav e to be in italics. W ords in italics are what you hav e to type into the blank boxes.)
· Mov e the cursor to the second box under “Original Values:”. Type in 70:100.
· Mov e the cursor to the second box under “New:”. Type in tall. The dialog box should look something like this: ·
· Click OK.
Look in the worksheet window. Column C4 should contain the coded heights. f. Saving the worksheet to a file 1. From the main menu, select File > Save Current Worksheet As 2. Choose an appropriate drive (z drive or flash drive or someplace you will be able to find it later! ) and f older where you want the f ile to be sav ed. Giv e the file a name and click on the Save button. (This will be an MTW file.) Do this now. (It’s always a good idea to sav e often!!! ) 2. At times, data sets will be placed on...
View Full Document
- Spring '14