BMDP Program file
/problem title is 'ampel'.
/input file is 'ampel'.
variables are 17.
format is '(3f2.0,f4.0,f2.0,5f1.0,f2.0,4f1.0, f5.2,f1.0)'.
/variable names are tag,monat,jahr,uhr,nummer,alterfa, geschl,mitfa,zamitfa,gemitfa,marke,farbe,alterau, klasse,reakt,reazeit,stat.
/transform use=klasse lt 6.
if(klasse=1 or klasse=2)then neukla=1.
if(klasse=3)then neukla=2.
if(klasse=4 or klasse=5)then neukla=3.
/form time is reazeit.
status is stat.
response is 1.
/estimate method is life.
plot is surv,log,cum,haz.
print.
/end
Short Documentation
60 observations = 60 lines (29 columns). “Bus” excluded: 57 observations.
Format is '(3f2.0,f4.0,f2.0,5f1.0,f2.0,4f1.0, f5.2,f1.0)'.
Example: First Line Day f2.0 13
Month f2.0 01 Year f2.0 86
Day-time f4.0 1747 (= 5.47 p.m.) Case number f2.0 30
Age of driver (estimated), categories f1.0 2 Sex of driver f1.0 1 Other persons in car? (no = 1; yes = 2) f1.0 2
How many? f1.0 (blank = missing) Sex co-driver f1.0 (blank = missing) Brand of car f2.0 15
Colour of car f1.0 4 Age of car (estimated, categories) f1.0 1 Class of car (6 categories:
Small car = 1; lower middle class = 2;
middle class = 3; upper middle class = 4;
upper class = 5; bus = 6) f1.0 6 Type of reaction (no reaction,
horn-honking, beaming, overtaking) f1.0 1
Duration in seconds until reaction f5.2 03.50 (= 3.5 seconds) Status (1 = response, 0 = censored) f1.0 1