Table of Contents
balbins  eliminate trials from bins so bins can be matched for size
(ERP scripts)
balbins f bdffile [ bins b1 [ b2 ... bN ] ] [n num_trials]
balbins randomly eliminates trials from bin(s) in the bdf(5)
(Bin Descriptor File) bdffile so bins can be matched for size, and writes
the revised BDF file to standard outout where it can be piped to a file
if desired. The argument f bdffile is mandatory and must be a syntactically
correct bdf(5)
file (this is not checked).
 bins b1 [ b2 ... bN ]
 Specifies
the bin numbers to balance for size, other bins are not modified. If no
bins are specified, all bins except cals are resized.
 n num_trials
 Gives
the number of trials each bin should have. If no trials are specified, the
size of the smallest of the specified (non cal=0) bin is used as the target
size. If a specified bin is already smaller than the target size, it is
not modified and a warning message is logged in the output associated with
that bin. Trials are dropped from the bins pseudorandomly so different trials
will be dropped in different runs of the script.
balbins f FMxStimxResp.bdf bins 1 2 15 16 n 20
 Resize bins 1, 2, 15, and 16 to contain 20 randomly selected event codes

balbins f FMxStimxResp.bdf bins 1 2 15 16
 Resize bins 1, 2, 15, and 16 to have the same number of trials where this
 number is given by whichever of the four bins is the smallest.
balbins f FMxStimxResp.bdf
 Resize every bin to have the same number of trials where this
 number is
given by whichever of the noncal bins is the smallest.
Tom Urbach
Table of Contents