REPORT FILE STRUCTURE --------------------- To make a report, create a new text file with the same base name as the survey file but with the extension ".report" instead. (For example, the report for a survey called "example.survey" should be named "example.report). The file should have three sections: [variable] [html code] [html code] SELECTOR is the variable used to select which case to display for a case report. OVERVIEW is a block of html code intermixed with special tags (see below) to display when an overview report is requested. CASE is a block of html code intermixed with special tags (see below) to display when a case report is requested. OVERVIEW REPORTS ---------------- The overview section is a block of html code where the following tags will be replaced with the value they correspond to: The tag names should be self-explanatory. The [variable] is which variable to calculate the requested descriptive statistics on. CASE REPORTS ------------ The overview section is a block of html code where the following tags will be replaced with the value they correspond to: is the value of a submitted variable. is the label corresponding to the submitted value. is the question text for the variable. performs a calculation. The [calculation] field consists of $[variable] and mathematical expressions. For example "$myval1 + $myval2" would sum the submitted variables "myval1" and "myval2". replaces a calculated value with a label based on an interval description. The [calculation] field is as above. The [intervals] field have the format "interval:label[,interval:label..]". For example "1-12:child,13-19:teen,20-25:young adult,26-110:elderly". HOW TO ACCESS THE REPORT ------------------------ The reports work as any other export module. Simply go to the data meny and click the corresponding report type. EXAMPLE REPORT -------------- Assume we have a survey that collects the variables name, age and sex. The contents of the report file could be: name Case report

Case report

is a year old .
Overview report

Overview report

The average age of the respondents is
The case report would display for example "Joel is a 32 year old male.", while the overview report would display for example "The average age of the respondents is 25.4".