making the mdm file.plaza.ufl.edu/algina/hlm6.pdf · if you have missing data but do not select...

53
1

Upload: others

Post on 01-Jun-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

1

Page 2: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

2

Making the MDM file. For any given set of variables, you only need to do this once. But if you need to add a variable, you will need to repeat the process. HLM cannot transform variables (e.g., a square of a variable), so if you need a transformed variable in your analysis, it must be included in the set of variables read into HLM.

Page 3: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

3

ASCII Input is a text file. Stat Package Input is easier. With the student version, use SPSS .sav files. With the regular version Excel files can be read.

Page 4: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

4

Page 5: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

5

More on missing data at the end of the handout.

As far as I can tell, selecting measures within persons just changes the notation in the GUI.

Page 6: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

6

Page 7: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

7

Clicking Browse opens a WINDOWS dialog Box

Page 8: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

8

Page 9: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

9 9

Page 10: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

10

This is a fragment of the level-1 file that will be read into HLM. I included it so you can see what the file looks. It would not be displayed in the process of creating the mdm file. The variable named ID a school (level-2 unit). It need not be called ID. Note that the file is sorted by ID.

Page 11: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

11 11

Page 12: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

12

Page 13: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

13

Page 14: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

14

Page 15: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

15

Page 16: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

16 16

`

Page 17: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

17

This is a fragment of the level-2 file that will be read into HLM. I included it so you can see what the file looks. It would not be displayed in the process of creating the mdm file. The variable named ID is a school (level-2 unit). It need not be called ID. Note that the file is sorted by ID and includes the mean of SES.

Page 18: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

18

Page 19: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

19

Page 20: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

20

Page 21: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

21

Page 22: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

22

Clicking Save mdmt file opens a WINDOWS dialog Box

Page 23: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

23

Page 24: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

24 24

Page 25: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

25

Page 26: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

26

This screen is displayed for a few seconds.

Page 27: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

27

Page 28: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

28

These results should be compared with the descriptive statistics produced by SPSS from the files you read into HLM. If there is not agreement, something may have gone wrong in reading the data. This a Notepad file. You may want to save this file under a new name for future reference.

Page 29: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

29 29

Page 30: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

30

The >> << indicates that the level-1 variables are showing. After selecting level-1 variables for the model, clicking level-2 displays the level-2 variables

Page 31: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

31 31

Page 32: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

32

Page 33: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

33

This operation is optional

Page 34: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

34

Page 35: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

35

This operation is optional

Page 36: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

36 36

Page 37: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

37

Page 38: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

38

Produces a Windows dialog box to save your program.

Page 39: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

39 39

Page 40: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

40

This box will flash by indicating the program is running. After it runs click

file and view output

Page 41: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

41

Page 42: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

42

Creating a new model from an old mdm file

Page 43: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

43 43

Page 44: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

44 44

Page 45: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

45

You can create a new model

Page 46: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

46

Running an old model or revising an old model

Page 47: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

47

You can re-run or revise the existing model.

Page 48: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

48

You can edit an existing file. This can be useful if you work on different machines and the drive labels vary across the machines. However if the drive labels change across machines, the GUI will give you error messages and you can change the labels through the GUI.

Page 49: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

49

Page 50: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

50

This is an example of the GUI when persons-within-measures is selected. See page 5 Note the change in the notation. Compare to page 33.

Page 51: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

51How HLM handles Missing Data

HLM2 handles missing data at level-1 of the hierarchy as follows:

Observations with missing data will be deleted using listwise deletion at either

the MDM creation stage or when the analysis is run.

The Make MDM dialog box for 2-level (HLM2) allows the chooser to two

between these options.

• If deletion at the MDM creation stage is chosen, listwise deletion is

performed based on the level-1 variables selected for inclusion in the

MDM file. Listwise deletion means that if there were any missing

scores in a row of the SPSS level-1 file on the variables selected

Page 52: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

52inclusion in the MDM file, that row of data will be deleted when the

MDM file is created.

• If deletion at the analysis stage is chosen, listwise deletion is

performed based on the variables included in the actual model to be

run. Listwise deletion means that if there were any missing scores in a

row of the SPSS level-1 file on the variables selected inclusion in the

analysis, that row of data will be deleted when the analysis is

conducted.

Clearly deletion at the analysis stage is the better option.

Failure to acknowledge missing data.

If you have missing data but do not select yes, you get this message

Missing data found at level-1, unable to continue.

Non-matching Levl-1 and Level-2 Files

If you have cases in the level-1file for which there is not a matching ID in the

level-2 file, the ids without the match will be deleted and the deleted ids will

be identified in the file that is displayed when you click check stats:

Group 52 not in level-2 file.

Group 173 not in level-2 file.

Group 180 not in level-2 file.

Page 53: Making the MDM file.plaza.ufl.edu/algina/hlm6.pdf · If you have missing data but do not select yes, you get this message . Missing data found at level-1, unable to continue. Non-matching

53If you have cases in the level-2 file for which there is not matching ID in the

level-1, the ids without the match will be deleted but there is no listing of the

ids that are deleted.