This page describes the legacy TURF option in Q. For a more modern TURF, please use Automate > Browse Online Library > TURF > TURF Analysis, and see the page Total Unduplicated Reach and Frequency (TURF) for more information on using the tool.
This QScript runs a TURF analysis on selected variables.
Example
TURF Summary: Best Portfolios for Each Size Size Reach Freq. Portfolio 1 65.87% 469 Peppermint 2 82.44% 747 Peppermint OR Strawberry 3 90.87% 1,055 Lemon OR Peppermint OR Strawberry 4 95.08% 1,483 Lemon OR Peppermint OR Spearmint OR Strawberry 5 96.91% 1,750 Lemon OR Menthol OR Peppermint OR Spearmint OR Strawberry 6 98.17% 1,916 Menthol OR Orange OR Peppermint OR Spearmint OR Strawberry OR Vanilla 7 98.88% 2,213 Intense peppermint OR Menthol OR Orange OR Peppermint OR Spearmint OR Strawberry OR Vanilla 8 99.58% 2,331 Intense peppermint OR Menthol OR Orange OR Peach OR Peppermint OR Spearmint OR Strawberry OR Vanilla List of All 11 Alternatives from Gum flavour preferences % Population 31.46% 224 Apple 41.71% 297 Intense peppermint 43.26% 308 Lemon 37.50% 267 Menthol 39.89% 284 Orange 16.57% 118 Peach 65.87% 469 Peppermint 60.11% 428 Spearmint 39.04% 278 Strawberry 26.69% 190 Vanilla 16.29% 116 Watermelon
Technical details
- Variables from Pick Any and Pick Any - Grid questions can be included.
- The analysis generates a list of the most optimal portfolios in terms of reach and then frequency, for each portfolio size in a specified range of portfolio sizes. The results of the TURF analysis are displayed in a new text item in the report tree.
- The filters and weight are selected via this QScript and not via the usual drop-downs at the bottom of the window. The analysis is run only on the respondents without missing data for all alternatives.
- Options such as forced alternatives and mutually exclusive alternatives may also be specified. See Total Unduplicated Reach and Frequency (TURF) for more information on the options available in this QScript.
- There is an option to output tables in a format that can easily be copied and pasted into Excel (tab separated columns). This format is less readable when portfolio names are long, as names wrap around to the next line. It is therefore recommended that the standard format (not Excel friendly) is chosen when Excel exporting is not required.
- Requires Q 4.8.6 or later.
How to apply this QScript
- Start typing the name of the QScript into the Search features and data box in the top right of the Q window.
- Click on the QScript when it appears in the QScripts and Rules section of the search results.
OR
- Select Automate > Browse Online Library.
- Select this QScript from the list.
Customizing the QScript
This QScript is written in JavaScript and can be customized by copying and modifying the JavaScript.
Customizing QScripts in Q4.11 and more recent versions
- Start typing the name of the QScript into the Search features and data box in the top right of the Q window.
- Hover your mouse over the QScript when it appears in the QScripts and Rules section of the search results.
- Press Edit a Copy (bottom-left corner of the preview).
- Modify the JavaScript (see QScripts for more detail on this).
- Either:
- Run the QScript, by pressing the blue triangle button.
- Save the QScript and run it at a later time, using Automate > Run QScript (Macro) from File.
Customizing QScripts in older versions
Prior to the 15th of December, 2015, this page was known as TURF - Total Unduplicated Reach and Frequency ''Prior to the 3rd of August, 2016, this page was known as Multivariate - TURF (Total Unduplicated Reach and Frequency)
See also
- QScript for more general information about QScripts.
- QScript Examples Library for other examples.
- Online JavaScript Libraries for the libraries of functions that can be used when writing QScripts.
- QScript Reference for information about how QScript can manipulate the different elements of a project.
- JavaScript for information about the JavaScript programming language.
- Table JavaScript and Plot JavaScript for tools for using JavaScript to modify the appearance of tables and charts.
- Total Unduplicated Reach and Frequency (TURF) for information on the options in this QScript and the TURF feature for versions of Q prior to 4.8.6.