Professional > Interview scripting > Writing interview scripts > Keywords for data analysis > Analysis subheading elements
 
Analysis subheading elements
Subheadings help break up long lists of responses by grouping similar responses under a title. For instance, a long list of holiday destinations immediately becomes easier to use if it is broken down by country. Sometimes, the same response may appear more than once in a list. This may happen in product tests, for example, where the product is available in a number of forms such as biological and non-biological washing powder, or regular, diet, and caffeine-free soft drinks. In this case, subheadings are imperative in interviews to help respondents select the right product.
Similar requirements apply to analyses. Subheadings break the tables up making them easier to follow.
To create subheadings in analyses
Put the following statement in the question’s axis block:
Name 'Text' text()
Parameters
Name
The element’s name.
Text
The subheading text you want to display in analyses.
Examples
Countries "Which countries did you visit on your last
holiday abroad?" categorical [1..]
{
Europe
{
Austria, England, France, Germany, Ireland, Italy
},
Asia
{
China, India, Japan, Malaysia, Singapore
}
}
axis (
"{
Europe 'Europe' text(),
Austria..Italy,
Asia 'Asia' text(),
China..Singapore
}"
);
If responses in a list are namespaced because the same name appears more than once, the axis block must give the full name for each response, as shown in the next example:
FoodProgs "Which of these food programs have you watched during the last three months?" categorical [1..]
{
TVSat "On a TV or Satellite Channel"
{
HellsKitchen "Hell's Kitchen",
GoodFoodLive "Good Food Live",
CookingForOne "Cooking for One"
} namespace,
VideoDVD "On Video or DVD"
{
HellsKitchen "Hell's Kitchen",
GoodFoodLive "Good Food Live",
CookingForOne "Cooking for One"
} namespace,
Internet "On the internet"
{
HellsKitchen "Hell's Kitchen",
GoodFoodLive "Good Food Live",
CookingForOne "Cooking for One"
} namespace,
None "None of these" style(indent=0) exclusive
}
axis(
"{
TVSat 'TV/Satellite' text(),
TVSat.HellsKitchen,
TVSat.GoodFoodLive,
TVSat.CookingForOne,
VideoDVD 'Video/DVD' text(),
VideoDVD.HellsKitchen,
VideoDVD.GoodFoodLive,
VideoDVD.CookingForOne,
Internet 'Internet' text(),
Internet.HellsKitchen,
Internet.GoodFoodLive,
Internet.CookingForOne,
None
}"
);
The indentation of elements under their subheadings in the axis block is for ease of reading only. It does not affect how the texts appear in analyses.
See also
Keywords for data analysis