Welcome to Dave’s Data Demonstration
description
Transcript of Welcome to Dave’s Data Demonstration
![Page 1: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/1.jpg)
Welcome to Dave’s Data Demonstration
• This presentation is designed for users of SPSS with some familiarity with the program and a willingness to experiment with the syntax editor. If you’re new to the software, take a deep breath and relax, there are screenshots to guide you and items that you can simply cut and paste if you need to.
![Page 2: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/2.jpg)
A few things to start
• A few basic commands to know:– The paste button on the interface opens up the syntax
editor and pastes what you’ve done onto that. This is your friend when you’re creating data.
– In order for SPSS to know how big a set you want, create your variables in variable view first, then using data view, input a dummy value in the row representing your last participant. This sets the sample size for you very easily.
– Keep variable names simple and short, it will save you quite a bit of time.
![Page 3: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/3.jpg)
Independent Samples
t-test
Paired Samplest-test
One way ANOVA
Two factorANOVA
RepeatedMeasures
ANOVA
Correlation/Regression
Choose the statistical test for which you need to generate data.
![Page 4: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/4.jpg)
Independent samples t-test
•What you need…
•Column one: Grouping variable
•Column two: Dependent variableThe next slides show you what the SPSS window will look like using the Transform Compute command followed by selecting the “If” button. First is the sequence of commands to generate the grouping variable, second is the commands for the dependent variable.
![Page 5: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/5.jpg)
![Page 6: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/6.jpg)
![Page 7: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/7.jpg)
IF ($CASENUM <= 20) gender = 0 .EXECUTE .
IF ($CASENUM > 20) gender = 1 .EXECUTE .
Below is the appropriate syntax for generating the categorical variable (gender) and the dependent variable (reaction time).
Categorical variable
Dependent variable
IF (gender = 0) rt = RV.NORMAL(600,50) .EXECUTE .
IF (gender = 1) rt = RV.NORMAL(675,50) .EXECUTE .
This value represents the mean. Making the difference between the means larger or smaller will change the outcome of your test. Left click to see how to adjust this for a non-significant result.IF (gender = 0) rt = RV.NORMAL(600,50) .
EXECUTE .
IF (gender = 1) rt = RV.NORMAL(605,50) .EXECUTE .
Return to test Selection page
View Again
![Page 8: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/8.jpg)
Paired samples t-test
• What you need– One dependent variable (DV) measured twice
for the same participants– Column one: DV time one– Column two: DV time two
The next slide shows you what the SPSS window will look like using the Transform Compute command. Repeat the exact same process for both variables.
![Page 9: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/9.jpg)
![Page 10: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/10.jpg)
Below is the appropriate syntax for generating the two measurements of the dependent variable (in this case self-esteem).
COMPUTE se1 = RV.NORMAL(20,5) .EXECUTE .
COMPUTE se2 = RV.NORMAL(30,6) .EXECUTE .
Notice the difference between the means. Making this difference smaller will make it more likely to find non-significant results. Click to see the syntax for nonsignificant data.
COMPUTE se1 = RV.NORMAL(20,5) .EXECUTE .
COMPUTE se2 = RV.NORMAL(21,6) .EXECUTE .
Return to test Selection page
View Again
![Page 11: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/11.jpg)
One way ANOVA
• Data creation for a one way ANOVA is an identical process to the Independent Samples t-test. Click on the button below to view the screenshots for the independent samples case if you’d like to review it.
• The next slide contains the syntax information for a significant one way ANOVA.
Independent SamplesT-test
Syntax for One-way
ANOVA
![Page 12: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/12.jpg)
Below is the appropriate syntax for generating the GPA terms for each different grade level.
IF (grade= 1) GPA = RV.NORMAL(2,.4) .EXECUTE .
IF (grade = 2) GPA = RV.NORMAL(2.5,.4).EXECUTE .
IF (grade = 3) GPA = RV.NORMAL(3,.4).EXECUTE .
Return to test Selection page
View Again
![Page 13: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/13.jpg)
Two factor ANOVA
• Generating good Two factor ANOVA data can be tricky. However, the main thing to remember is that you want to create your data in a cell by cell fashion. With a little good old fashion pencil and paper planning, you can lay out main effects and interactions and then use “If” commands to fill things in cell by cell.
![Page 14: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/14.jpg)
Creating your groups
IF ($CASENUM < 10) grade = 1 .EXECUTE .
IF ($CASENUM >= 10) grade = 2 .EXECUTE .
IF ($CASENUM >= 20) grade = 3.EXECUTE .
IF ($CASENUM >= 30) grade = 4.EXECUTE .
So the next step is to put together the next group, but you want to keep things balanced. Let’s consider gender as our second grouping variable.
![Page 15: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/15.jpg)
The second grouping variable…
![Page 16: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/16.jpg)
The second grouping variable
By selecting approximately 50% of the cases, this creates a new filter variable. Then, it is simple cutting and pasting to move the numbers from the filter column into the gender column. After you cut and paste, then turn select cases off and you’ve got gender distributed across the whole set.
![Page 17: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/17.jpg)
Finally, it’s just a matter of writing the syntax for your random normally distributed dependent variable
IF (grade = 1 and gender = 0) GPA = RV.NORMAL (2,.4) .EXECUTE.
IF (grade = 1 and gender = 1) GPA = RV.NORMAL (2.4,.4) .EXECUTE.
IF (grade = 2 and gender = 0) GPA = RV.NORMAL (2.4,.4) .EXECUTE.
IF (grade = 2 and gender = 1) GPA = RV.NORMAL (2.6,.4) .EXECUTE.
IF (grade = 3 and gender = 0) GPA = RV.NORMAL (3,.4) .EXECUTE.
IF (grade = 3 and gender = 1) GPA = RV.NORMAL (2.9,.4) .EXECUTE.
IF (grade = 4 and gender = 0) GPA = RV.NORMAL (3.1,.4) .EXECUTE.
IF (grade = 4 and gender = 1) GPA = RV.NORMAL (3.2,.4) .EXECUTE.
Return to test Selection page
View Again
![Page 18: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/18.jpg)
Repeated Measures ANOVA
• Data creation for a repeated measures ANOVA is an identical process to the Paired Samples t-test. Click on the button below to view the screenshots for the paired samples case if you’d like to review it.
• The next slide contains the syntax information for a significant one way ANOVA.
Paired SamplesT-test
Syntax for repeated measures
ANOVA
![Page 19: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/19.jpg)
Below is the appropriate syntax for generating the multiple measurements of the dependent variable (in this case self-esteem).
COMPUTE se1 = RV.NORMAL(20,5) .EXECUTE .
COMPUTE se2 = RV.NORMAL(30,6) .EXECUTE .
COMPUTE se3 = RV.NORMAL(37,4).EXECUTE.
Return to test Selection page
View Again
![Page 20: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/20.jpg)
Correlation/Regression
• Correlational data is slightly different to create. In most other situations, we’re comparing means with each other. In the case of correlation, we have to construct the dataset in such a way as to reflect the relationship in the data. No longer can we just change mean values of normal distributions.
• The next slides contain the screenshots for the creation of the correlational data as well as the syntax for a pairwise comparison.
![Page 21: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/21.jpg)
Step oneThe first step in this process is relatively easy. Simply create a normally distributed continuous variable (in this case it’s anxiety level).
![Page 22: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/22.jpg)
Step two• In this step you have to establish the
relationship between the variables. The key is to create the next variable (depression) in such a way that anxiety plays a role in its creation.
![Page 23: Welcome to Dave’s Data Demonstration](https://reader035.fdocuments.in/reader035/viewer/2022062309/56815a82550346895dc7ed6a/html5/thumbnails/23.jpg)
Below is the appropriate syntax for generating the multiple measurements of the dependent variable (in this case self-esteem).
COMPUTE anx = RV.NORMAL(30,5) .EXECUTE .COMPUTE dep = anx + RV.NORMAL(10,.3) .EXECUTE .
In this case, the mean of the specified normal distribution does not play a major role in establishing the significance of the correlation. The two key elements are the plus sign, which indicates that you’re creating a positive relationship, and the standard deviation on the second variable. Because we’re using a very small standard deviation, we’ll have a high magnitude correlation. Make the standard deviation larger, and you’ll reduce the strength of the correlation.
COMPUTE anx = RV.NORMAL(30,5) .EXECUTE .COMPUTE dep = anx + RV.NORMAL(10,9) .EXECUTE .
Return to test Selection page
View Again