Hi everyone,
I used to be able to successfully run this test code in SPSS, but now it looks like the plug-in is not working or nowhere to be found.
Where can we locate (or how do we install) the plug-in for version 21?
Thanks for you guidance.
Best regards,
Florio
BEGIN PROGRAM.
import random
NTRIALS = 10000
NPEOPLE = 30
matches = 0
for trial in range(NTRIALS):
taken = {}
for person in range(NPEOPLE):
day = random.randint(0, 365)
if day in taken:
matches += 1
taken[day] = 1
print "The fraction of trials that have matching birthdays is", float(matches)/NTRIALS
n = 2 + 2
print n
END PROGRAM.
Error # 6890. Command name: BEGIN PROGRAM
Configuration file spssdxcfg.ini is invalid.
Execution of this command stops.
Configration file spssdxcfg.ini is invalid because the LIB_NAME is NULL.