* Encoding: UTF-8.
* Psychology Thesis Class Demo.
* Nov 11, 2020.
* What gender do you identify with?'.
FREQ Q1.
IF (Q1 = "cisgender female") Q1R = 2.
IF (Q1 = "Cisgender female") Q1R = 2.
IF (Q1 = "Cisgender male") Q1R = 1.
IF (Q1 = "female") Q1R = 2.
IF (Q1 = "Female") Q1R = 2.
IF (Q1 = "male") Q1R = 1.
IF (Q1 = "Male") Q1R = 1.
IF (Q1 = "prefer not to say") Q1R = 99.
VALUE LABELS Q1R 1 "Male" 2 "Female" 99 "Prefer not to say".
VARIABLE LABELS Q1R "Q1. What gender do you identify with?".
MISSING VALUES Q1R (99).
FREQ Q1R.
* 2. When were you born? (Month, Day, Year).
FREQ Q2_1 Q2_2 Q2_3.
* Need to fix the year variable.
IF (Q2_3 = 13) Q2_3R = 1912.
IF (Q2_3 = 78) Q2_3R = 1977.
IF (Q2_3 = 84) Q2_3R = 1983.
IF (Q2_3 = 90) Q2_3R = 1989.
IF (Q2_3 = 92) Q2_3R = 1991.
IF (Q2_3 = 94) Q2_3R = 1993.
IF (Q2_3 = 95) Q2_3R = 1994.
IF (Q2_3 = 96) Q2_3R = 1995.
IF (Q2_3 = 97) Q2_3R = 1996.
IF (Q2_3 = 99) Q2_3R = 1998.
IF (Q2_3 = 100) Q2_3R = 1999.
IF (Q2_3 = 101) Q2_3R = 2000.
VARIABLE LABELS Q2_3R "Birth year".
FREQ Q2_3R.
COMPUTE birthdate =DATE.DMY(Q2_2, Q2_1, Q2_3R).
formats birthdate (date11).
FREQ birthdate.
IF ~SYSMIS(birthdate) age= trunc(datediff(DATE.MDY(11,06,2020),birthdate,'days') / 365.25).
VARIABLE LABELS age "Age".
FREQ age.
* Could create an age group variable.
* 3. How many mathematics-related courses have you taken in university?.
FREQ Q3.
* 4. What percentage (0% to 100%) of randomly chosen university students would have weaker mathematics skills than you do? (0% = no one, 50% = half, 100% = everyone).
FREQ Q4_1.
* 5. Briefly describe the basis for the score you assigned yourself in question 4.
* open-ended responses - need to identify themes and create new variables.
FREQ Q5.
COMPUTE Q5R1 = 2.
IF (Q5 = "Grades in my math courses.") Q5R1 = 1.
IF (Q5 = "I got A+ for both of the recently taken math-related courses. However, since these two courses are only year 2 level, I am sure I won't do as well in a higher level math class. Another year 4 level course I got an A-.") Q5R1 = 1.
VALUE LABELS Q5R1 1 "Yes" 2 "No".
VARIABLE LABELS Q5R1 "Assessment based on past grades".
FREQ Q5R1.
* 6. When was the last time you took a mathematics course? Please include the year and level.
FREQ Q6.
IF (Q6 = "2000 3rd year") Q6_year = 2000.
IF (Q6 = "2018") Q6_year = 2018.
IF (Q6 = "2018-2019, Year 4 level") Q6_year = 2019.
IF (Q6 = "2018, 3000") Q6_year = 2018.
IF (Q6 = "2019 2nd year") Q6_year = 2019.
IF (Q6 = "2019/2020 - 4100 stats") Q6_year = 2020.
IF (Q6 = "2019/2020 4100 data analysis") Q6_year = 2020.
IF (Q6 = "2020 at 4000 level") Q6_year = 2020.
IF (Q6 = "4 years ago in high school.") Q6_year = 2016.
IF (Q6 = "4000 lvl, last year 2019") Q6_year = 2019.
IF (Q6 = "4100 in 2017") Q6_year = 2017.
IF (Q6 = "4100, 2019-2020") Q6_year = 2020.
IF (Q6 = "5 years ago") Q6_year = 2015.
IF (Q6 = "Psych 4100, Winter 2020") Q6_year = 2020.
IF (Q6 = "This semester. math-1103 (calculus I)") Q6_year = 2020.
FORMATS Q6_year (f4.0).
VARIABLE LABELS Q6_year "Year last took a math course".
FREQ Q6_year.
IF (Q6 = "2000 3rd year") Q6_level = 3.
IF (Q6 = "2018-2019, Year 4 level") Q6_level = 4.
IF (Q6 = "2018, 3000") Q6_level = 3.
IF (Q6 = "2019 2nd year") Q6_level = 2.
IF (Q6 = "2019/2020 - 4100 stats") Q6_level = 4.
IF (Q6 = "2019/2020 4100 data analysis") Q6_level = 4.
IF (Q6 = "2020 at 4000 level") Q6_level = 4.
IF (Q6 = "4 years ago in high school.") Q6_level = 0.
IF (Q6 = "4000 level statistics course") Q6_level = 4.
IF (Q6 = "4000 lvl, last year 2019") Q6_level = 4.
IF (Q6 = "4100 data analysis") Q6_level = 4.
IF (Q6 = "4100 in 2017") Q6_level = 4.
IF (Q6 = "4100, 2019-2020") Q6_level = 4.
IF (Q6 = "Psych 4100, Winter 2020") Q6_level = 4.
IF (Q6 = "This semester. math-1103 (calculus I)") Q6_level = 1.
VALUE LABELS Q6_level 0 "high school" 1 "first year" 2 "second year" 3 "third year" 4 "fourth year".
VARIABLE LABELS Q6_level "Level of last math course".
FREQ Q6_level.
* 7. When you solve mathematics problems, how often do you experience and make use of visual images (e.g., as though seeing the numbers written on a blackboard)?.
* 8. When you solve mathematics problems, how often do you experience and make use of self-talk (e.g., as though talking out the steps aloud)?.
FREQ Q7_1 Q7_2.
* Math identity.
FREQ Q8_1 Q8_2.
* convert from a 7-point scale to a 3-point scale.
RECODE Q8_1 (1 2 3 = 1) (4 = 2) (5 6 7 = 3) INTO Q8_1R.
VALUE LABELS Q8_1R 1 "Disagree" 2 "Neutral" 3 "Agree".
VARIABLE LABELS Q8_1R "When you solve mathematics problems, how often do you experience and make use of visual images (e.g., as though seeing the numbers written on a blackboard)".
FREQ Q8_1R.
* Handedness.
* Higher score = Right, Lower score = left.
FREQ Q9_1 Q9_2 Q9_3 Q9_4 Q9_5 Q9_6 Q9_7 Q9_8 Q9_9 Q9_10 Q9_11 Q9_12.
COMPUTE Q9_sum = Q9_1 + Q9_2 + Q9_3 + Q9_4 + Q9_5 + Q9_6 + Q9_7 + Q9_8 + Q9_9 + Q9_10 + Q9_11 + Q9_12.
COMPUTE Q9_ave = Q9_sum / 12.
VARIABLE LABELS Q9_sum "Handedness - Sum".
VARIABLE LABELS Q9_ave "Handedness - Average".
FREQ Q9_sum Q9_ave.
DESCR Q9_sum Q9_ave.
* determine the plan for dealing with missing values.
* Fennema-Sherman Attitude Scales.
* Math as a Male Domain - 1 (high - math is a male domain).
* Math Anxiety - 2 (high - math anxious).
* Effectance Motivation in Mathematics Scale - 3.
FREQ Q10_1 Q10_2 Q10_3 Q10_4 Q10_5 Q10_6 Q10_7 Q10_8 Q10_9 Q10_10 Q10_11 Q10_12 Q10_13 Q10_14 Q10_15 Q10_16 Q10_17 Q10_18 Q10_19 Q10_20 Q10_21
Q10_22 Q10_23 Q10_24 Q10_25 Q10_26 Q10_27 Q10_28 Q10_29 Q10_30 Q10_31 Q10_32 Q10_33 Q10_34 Q10_35 Q10_36.
* Male Domain.
* don't reverse code - Q10_5 Q10_9 Q10_16 Q10_22 Q10_26 Q10_34
* reverse code - Q10_6 Q10_7 Q10_14 Q10_21 Q10_25 Q10_36
RECODE Q10_6 (1 = 5) (2 = 4) (3 = 3) (4 = 2) (5 = 1) INTO Q10_6R.
VARIABLE LABELS Q10_6R "6. Females are as good as males in geometry - RECODE.".
VALUE LABELS Q10_6R 1 "Strongly Disagree" 2 "Disagree" 3 "Neutral" 4 "Agree" 5 "Strongly Agree".
FREQ Q10_6 Q10_6R.
RECODE Q10_7 (1 = 5) (2 = 4) (3 = 3) (4 = 2) (5 = 1) INTO Q10_7R.
VARIABLE LABELS Q10_7R "7. Studying mathematics is just as appropriate for women as for men. - RECODE.".
VALUE LABELS Q10_7R 1 "Strongly Disagree" 2 "Disagree" 3 "Neutral" 4 "Agree" 5 "Strongly Agree".
FREQ Q10_7 Q10_7R.
RECODE Q10_14 (1 = 5) (2 = 4) (3 = 3) (4 = 2) (5 = 1) INTO Q10_14R.
VARIABLE LABELS Q10_14R "14. I would trust a woman just as much as I would trust a man to figure out important calculations. - RECODE.".
VALUE LABELS Q10_14R 1 "Strongly Disagree" 2 "Disagree" 3 "Neutral" 4 "Agree" 5 "Strongly Agree".
FREQ Q10_14 Q10_14R.
RECODE Q10_21 (1 = 5) (2 = 4) (3 = 3) (4 = 2) (5 = 1) INTO Q10_21R.
VARIABLE LABELS Q10_21R "21. Girls can do just as well as boys in mathematics. - RECODE.".
VALUE LABELS Q10_21R 1 "Strongly Disagree" 2 "Disagree" 3 "Neutral" 4 "Agree" 5 "Strongly Agree".
FREQ Q10_21 Q10_21R.
RECODE Q10_25 (1 = 5) (2 = 4) (3 = 3) (4 = 2) (5 = 1) INTO Q10_25R.
VARIABLE LABELS Q10_25R "25. Males are not naturally better than females in mathematics. - RECODE.".
VALUE LABELS Q10_25R 1 "Strongly Disagree" 2 "Disagree" 3 "Neutral" 4 "Agree" 5 "Strongly Agree".
FREQ Q10_25 Q10_25R.
RECODE Q10_36 (1 = 5) (2 = 4) (3 = 3) (4 = 2) (5 = 1) INTO Q10_36R.
VARIABLE LABELS Q10_36R "36. Women certainly are logical enough to do well in mathematics. - RECODE.".
VALUE LABELS Q10_36R 1 "Strongly Disagree" 2 "Disagree" 3 "Neutral" 4 "Agree" 5 "Strongly Agree".
FREQ Q10_36 Q10_36R.
COMPUTE mathmale_sum = Q10_5 + Q10_9 + Q10_16 + Q10_22 + Q10_26 + Q10_34 + Q10_6R + Q10_7R + Q10_14R + Q10_21R + Q10_25R + Q10_36R.
VARIABLE LABELS mathmale_sum "F-S Math as a Male Domain Subscale - Sum".
FREQ mathmale_sum.
COMPUTE mathmale_ave = mathmale_sum / 12.
VARIABLE LABELS mathmale_ave "F-S Math as a Male Domain Subscale - Ave".
FREQ mathmale_ave.
DESC mathmale_ave.
* check the reliability of the sub- scale.
RELIABILITY
/VARIABLES= Q10_5 Q10_9 Q10_16 Q10_22 Q10_26 Q10_34 Q10_6R Q10_7R Q10_14R Q10_21R Q10_25R Q10_36R
/SCALE('ALL VARIABLES') ALL
/MODEL=ALPHA
/STATISTICS=DESCRIPTIVE SCALE
/SUMMARY=TOTAL.
* Anxiety. Q10_2 Q10_3 Q10_10 Q10_12 ...
* Identify the anxiety items, recode items, create total and average scores.
* Effectance. Q10_1 Q10_4 Q10_8 Q10_11 ...
* Identify the effectance items, recode items, create total and average scores.
* Mental Rotation Task.
FREQ QID12.
** need to find a better way for people to enter this data into qualtrics.
* Embedded Figures Task.
FREQ Q12_1 Q12_2 Q12_3 Q12_4 Q12_5 Q12_6 Q12_7 Q12_9 Q12_10 Q12_11 Q12_12.
* D was correct.
COMPUTE Q12_1R = 0.
IF (Q12_1 = 4) Q12_1R = 1.
VALUE LABELS Q12_1R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_1R "Embedded Figures Q1".
FREQ Q12_1R.
* C was correct.
COMPUTE Q12_2R = 0.
IF (Q12_2 = 3) Q12_2R = 1.
VALUE LABELS Q12_2R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_2R "Embedded Figures Q2".
FREQ Q12_2R.
* C was correct.
COMPUTE Q12_3R = 0.
IF (Q12_3 = 3) Q12_3R = 1.
VALUE LABELS Q12_3R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_3R "Embedded Figures Q3".
FREQ Q12_3R.
* D was correct.
COMPUTE Q12_4R = 0.
IF (Q12_4 = 4) Q12_4R = 1.
VALUE LABELS Q12_4R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_4R "Embedded Figures Q4".
FREQ Q12_4R.
* B was correct.
COMPUTE Q12_5R = 0.
IF (Q12_5 = 2) Q12_5R = 1.
VALUE LABELS Q12_5R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_5R "Embedded Figures Q5".
FREQ Q12_5R.
* D was correct.
COMPUTE Q12_6R = 0.
IF (Q12_6 = 4) Q12_6R = 1.
VALUE LABELS Q12_6R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_6R "Embedded Figures Q6".
FREQ Q12_6R.
* C was correct.
COMPUTE Q12_7R = 0.
IF (Q12_7 = 3) Q12_7R = 1.
VALUE LABELS Q12_7R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_7R "Embedded Figures Q7".
FREQ Q12_7R.
* D was correct.
COMPUTE Q12_8R = 0.
IF (Q12_8 = 4) Q12_8R = 1.
VALUE LABELS Q12_8R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_8R "Embedded Figures Q8".
FREQ Q12_8R.
* B was correct.
COMPUTE Q12_9R = 0.
IF (Q12_9 = 2) Q12_9R = 1.
VALUE LABELS Q12_9R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_9R "Embedded Figures Q9".
FREQ Q12_9R.
* D was correct.
COMPUTE Q12_10R = 0.
IF (Q12_10 = 4) Q12_10R = 1.
VALUE LABELS Q12_10R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_10R "Embedded Figures Q10".
FREQ Q12_10R.
* C was correct.
COMPUTE Q12_11R = 0.
IF (Q12_11 = 3) Q12_11R = 1.
VALUE LABELS Q12_11R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_11R "Embedded Figures Q11".
FREQ Q12_11R.
* D was correct.
COMPUTE Q12_12R = 0.
IF (Q12_12 = 4) Q12_12R = 1.
VALUE LABELS Q12_12R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_12R "Embedded Figures Q12".
FREQ Q12_12R.
* D was correct.
COMPUTE Q12_13R = 0.
IF (Q12_13 = 4) Q12_13R = 1.
VALUE LABELS Q12_13R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_13R "Embedded Figures Q13".
FREQ Q12_13R.
* C was correct.
COMPUTE Q12_14R = 0.
IF (Q12_14 = 3) Q12_14R = 1.
VALUE LABELS Q12_14R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_14R "Embedded Figures Q14".
FREQ Q12_14R.
* D was correct.
COMPUTE Q12_15R = 0.
IF (Q12_15 = 4) Q12_15R = 1.
VALUE LABELS Q12_15R 1 "Correct" 0 "Incorrect".
VARIABLE LABELS Q12_15R "Embedded Figures Q15".
FREQ Q12_15R.
COMPUTE Q12_total = Q12_1R + Q12_2R + Q12_3R + Q12_4R + Q12_5R + Q12_6R + Q12_7R + Q12_8R + Q12_9R + Q12_10R + Q12_11R + Q12_12R + Q12_13R + Q12_14R + Q12_15R.
VARIABLE LABELS Q12_total "Total number of questions correct on the embedded figures task".
FREQ Q12_total.
* Could create a variable that indicates if someone "passed" (>7) or "failed" (<=7) the embedded figures task.