In this example we assume that a given S directory will have only one study in it, and by convention, that its variable linking question numbers and pages is called form.page . These assumptions can be overridden. The variable linking the question numbers and pages can be specified in the call to the form function. When the form function is called without specifying a question number, we default to the first question. This is the simplest version of the form function.
Some elaborations are obvious.
The typeset questionnaires can be stored TeX dvi files, or PostScript files, or scanned files printed by some other technology. Another type of elaboration is to attach the form.page variable as an attribute to the data frame and adjust the definition of the form function accordingly. This cooperative work was made possible by the availability of the internet. 1 Professor, Department of Statistics, Temple University, Philadelphia, PA 19122-2585.