2
•Step 1: creation of random stimulus functions
→RSFgen :  Random Stimulus Function generator
→command file: c01.RSFgen
• RSFgen -nt 300 -num_stimts 3 \
•        -nreps 1 50 -nreps 2 50 -nreps 3 50 \
→        -seed 1234568 -prefix RSF.stim.001.
→This creates 3 stimulus timing files:
• RSF.stim.001.1.1D  RSF.stim.001.2.1D  RSF.stim.001.3.1D
•
•Step 2: create ideal response functions (linear regression case)
→waver: creates waveforms from stimulus timing files
•effectively doing convolution
→command file:  c02.waver
→ waver -GAM -dt 1.0 -input RSF.stim.001.1.1D
→this will output (to the terminal window) the ideal response function, by
→ convolving the Gamma variate function with the stimulus timing function
→output length allows for stimulus at last TR (= 300 + 13, in this example)
→use '1dplot' to view these results, command:  1dplot wav.*.1D