x

Main chapters

  1. Get started
  2. Workspace
  3. Editor
  4. Question types
  5. Share
  6. Results
  7. Configuration
  8. Installation and updates
  9. Profile and personal settings
  10. Account and billing
  11. FAQs
  12. Development
 Actions

Statistics

From LimeSurvey Manual


General

The purpose of a survey is to "get answers to questions". Once you have activated your survey and collected responses, the statistics show the answers as tables and charts.

Statistics are only available once the survey is active. LimeSurvey offers:

Open the statistics

  • In the new editor: click Results in the top bar and then Statistics in the left panel. Export statistics at the top right opens the expert mode in a new browser tab.
  • In the classic editor: open the survey and click Statistics in the survey menu. The simple mode opens. Click Expert mode at the top right to filter the responses or to export the statistics.


Classic editor with the survey menu on the left and Statistics highlighted


The expert mode looks like this. Its Simple mode and Close buttons take you to the Statistics page of the new editor.

Statistics expert mode with the Simple mode, View statistics, Clear and Close buttons and the main filter options

The Statistics page in the new editor

The Statistics page shows a chart for every question of your survey, built from all responses collected so far. You see at a glance how participants answered.

Statistics page in LimeSurvey Cloud with numbered markers: Statistics in the left panel, percent or number switch, the question, its menu, the chart types and Export statistics
Statistics page in the Community Edition with numbered markers: Statistics in the left panel, percent or number switch, the question, its menu, the chart types and Export statistics
  1. Statistics in the left panel.
  2. % and #: show percentages or numbers of participants.
  3. The question: its number, code, question type and text. The charts follow the order of your survey, grouped by question group.
  4. The ... menu of the chart.
  5. Switch between the views of the chart, for example bar chart, pie chart and table.
  6. Export statistics: opens the expert mode for a statistics report with filters, as a web page, PDF or Excel file.

Point to a bar to see how many participants chose the answer and the percentage. The percentages are based on all responses, including incomplete ones. No answer counts the responses without an answer to the question.

Change a chart

  1. Click ... at the top right of the chart (4).
  2. Point to All chart options and choose Bar chart, Pie chart, Radar chart, Line chart, Polar area chart, Doughnut chart or Table.

For a bar chart, the arrow next to the bar chart icon (5) switches between a vertical and a horizontal bar chart.

To collapse a chart you don't need, choose Hide chart in the same menu. Show chart brings it back.

Filter the responses

Click Filter above the charts and then Add filter. Each filter selection uses a question, response data (for example the completion state or the submission date) or participant data. Combine several filter selections with AND or OR and click Apply filter. The charts then only count the matching responses. Reset filter removes the filters.

Statistics - expert mode

The expert mode creates a statistics report: you filter your responses, choose the questions and get tables and charts as a web page (HTML), a PDF or an Excel file. In the new editor, open it with Export statistics on the Statistics page. In the classic editor, click Statistics in the survey menu and then Expert mode.


The statistics script does not do highly complex filtering, but you can easily get a lot of useful information. For your own analysis in other software, export your responses instead.


Running quick statistics

  1. Under General filters, set Include to All responses, Complete only or Incomplete only.
  2. Choose the Output format: HTML, PDF or Excel. Turn on Show graphs to add charts.
  3. Choose the questions: tick them under Response filters, or turn on View summary of all available fields to include all questions.
  4. To analyze a part of your responses, select answers under a question, for example only the participants who chose Phone. Under Filter, Response ID and Submission date narrow the responses further.
  5. Click View statistics at the top. HTML shows the report on the page. PDF and Excel create a file to download.

Close takes you back to the Statistics page of the new editor.


Under Response filters, each question has a checkbox. Tick it to show a summary of the question. All ticks all questions of a question group. Then click View statistics.


Response filters of the statistics expert mode with all questions of a group ticked and the View statistics button highlighted


To view the results of all questions, turn on View summary of all available fields and click View statistics.


Main options of the statistics expert mode with View summary of all available fields turned on


You then get a Results table with the number of records, and a summary table for each selected question with all possible answers, their counts and their percentages.


Statistics results: number of records and summary tables with counts and percentages for the gender and age questions


The statistics are displayed on the same page because the default output format is HTML. If you choose PDF or Excel, View statistics creates a file that you can save on your computer.

Filtering data

Two types of filters exist: general and response filters.


General filters

As the name suggests, the General filters apply to all responses.


General filters of the statistics expert mode: main options, output options and filters for response ID and submission date


The Main options are:


  • Include: the type of responses:
    • All responses: complete and incomplete responses.
    • Complete only: responses that have a submission date.
    • Incomplete only: responses that don't have a submission date.
  • Statistics report language: shown only for surveys in several languages. Choose the language of the report.


For information on incomplete responses, see the section "Incomplete responses", "no answers" and "not completed/not displayed" count below.


  • View summary of all available fields: off by default. Turn it on to include all questions and groups in the statistics.
  • Subtotals based on displayed or answered questions (under Output options): Off by default. Displayed counts each question only in the responses where the question was displayed. Answered counts it only in the responses where the question was answered. This is a good way to leave out unfinished responses.

The Filter box has:

  • Response ID greater than / less than: filter your responses by their ID.
  • Submission date equals / later than / earlier than: filter your responses by their submission date. Only shown if Date stamp is on.

To get statistics filtered by the general filters only, turn on View summary of all available fields and click View statistics at the top right.

Response filters

Depending on the question type, you can filter your answers in different ways:

  • By answer: click one or more answers in the list under a question to filter the data by those answers. Use Ctrl+click to select several answers of the same question. If you turn on View summary of all available fields, select your response filters first.
  • By text: search the answers to free text questions with Responses containing. Use the percent sign (%) as wildcard. For example, 'Tom%' finds 'Tomb' and 'Tommy'.
  • By numerical value: for number-based question types, enter Number greater than and/or Number less than.


Response filters for different question types: answer lists to select, number ranges and a text field for responses containing a text


View statistics then shows the Results table with the number of responses that match your criteria, and a summary table for each selected question with all possible answers, their counts and their percentages. These results are a subset of your responses. For example, if your criteria match 146 of 180 records, the summaries only count those 146 records.

In the example below, the statistics show the employment status of female participants with complete responses: 7 of 16 records.


General filters with Include set to Complete only and Show graphs turned on


Response filters with Female selected for the gender question and the employment question ticked


Statistics results showing 7 of 16 records, 43.75% of the total


Summary for the employment question with counts, percentages, a bar chart and buttons for other chart types


  Things to be cautious of :
  • If you set criteria on the same question that you ask a summary of, the summary only shows the answers that match your criteria. So it is good practice not to set criteria on the question you want to summarize.
  • To select several answers of a question, hold down Ctrl when you click. To unselect an answer, click it again while you hold down Ctrl.


Graphs

The Excel output does not contain charts. The PDF output contains bar, pie, radar and line charts; polar area and doughnut charts are shown as pie charts. Multiple choice questions are always shown as bar charts instead of pie, polar area or doughnut charts.


In the HTML output, each chart has buttons to switch between Bar chart, Pie chart, Radar chart, Line chart, Polar chart and Doughnut chart. The charts are drawn in your browser. The charts of the PDF output are created as images on the server.

To save a chart, right-click it, choose "Save image as" and save it as a .png file.

To save all charts at once, click Export images below the statistics. Make sure all charts are loaded first.


Export images button at the bottom of the statistics page


LimeSurvey can't create charts for some question types. For example, the numerical input question type shows a table with count, sum, standard deviation, average, minimum, quartiles (including the median) and maximum instead:


Statistics summary for a numerical input question with count, sum, standard deviation, average, minimum, quartiles and maximum


To see which questions can use statistics and charts, check the manual page of each question type. The Statistics section of the question settings has three settings: Chart type, Display chart and Show in public statistics.

"Incomplete responses", "no answers" and "not completed/not displayed" count

  • incomplete responses: All questions started but not completed - the participant clicked the "Next" button in the survey, but did not click the "Submit" button (did not land on the end page of your survey).

There is no SubmitDate in the response table for this entry, but new data set was created already.

  • no answer: The question was displayed, but the participant did not give an answer.

The question is not mandatory, was displayed, received no answer and the user clicked "Next" or "Submit". The consequence is that the database field for this answer is set to "" (empty string). This "no answer" status cannot be really computed for "Date" or pure "Numerical questions" where the database field cannot record a string.

  • not completed/not displayed: The page containing the question was not displayed. This can be because of conditions, or because the participant left the survey before this page was displayed (or while this page is displayed, but without clicking the Next button).

The database field for this question is filled with a NULL value.

Output format and options

The statistics can be displayed in three different formats:


General filters of the statistics expert mode with the output format HTML, PDF or Excel highlighted


  • HTML (default option): the statistics are displayed in LimeSurvey.
  • PDF: the statistics are saved as a PDF file.
  • Excel: choose Excel to work further with your (filtered) data. You can save the file as CSV in your spreadsheet program to use it in statistics tools such as SPSS or R.


The output options change the way the statistics are displayed. The following options are available:


General filters of the statistics expert mode with the output options highlighted: text responses inline, subtotals, number of columns, graph labels and chart type


  • Show text responses inline: off by default. Shows the answers to text questions without clicking a Browse button. Useful for the HTML output.
  • Show graphs (under Main options): off by default. Turn it on to display charts.
  • Number of columns: Two by default. Choose One or Three to show the statistics and charts in one or three columns. It applies to the HTML output.
  • Graph labels: choose the labels of the charts:
    • Question code
    • Question text
    • Both
  • Chart type: the following chart types are available:
    • As defined in question settings: each question uses the chart type of its Chart type setting. To show no chart for a question, turn off its Display chart setting and keep this option.
    • Bar chart
    • Pie chart
    • Radar chart
    • Line chart
    • Polar chart
    • Doughnut chart
Any other choice forces this chart type for all selected questions.

Embed custom logo at statistic PDF

The statistics PDF can show a header with a logo, like the PDF export of responses. In Global settings ⇒ Presentation, turn on Show header in answers export PDFs. The header title, the header text and the width of the logo are set there too. The logo is the file logo_pdf.png of the survey theme. To use your own logo, replace this file in the theme editor.

Statistics - simple mode

The simple mode shows simple bar charts that you can quickly export, save and include in a presentation:


Simple mode bar chart for the question Which food do you like, with a legend of the answers


It shows fewer details than the expert mode. The expert mode can show for example the participants who did not answer a question or did not complete the survey. The simple mode only shows "countable" data, for example single or multiple choice questions and array questions.

The simple mode has only one filter: Include at the top of the page. It includes complete responses, incomplete responses, or all responses.

To switch to the expert mode, click Expert mode at the top right:


Statistics simple mode with bar charts for three questions and an arrow to the Expert mode button


In the classic editor, Statistics in the survey menu opens the simple mode. You can change the entries of the survey menu, see Menu entries configuration. The Statistics page of the new editor replaces the simple mode there.

Public statistics

LimeSurvey can show simple statistics to the public or to your participants after they have completed the survey.

Two settings need to be turned on. First, turn on the public statistics of the survey (off by default): in the new editor, click Presentation in the left toolbar and then Presentation; in the classic editor, open the Settings tab and click Presentation. Turn on Public statistics. To also show charts, turn on Show graphs in public statistics on the same page (off by default).


Presentation and navigation settings with Public statistics and Show graphs in public statistics turned on


Then choose the questions whose statistics participants can see. By default, no question is shown. Open each question you want to show and turn on Show in public statistics in the Statistics section of the question settings: in the new editor on the Advanced tab, in the classic editor in the settings on the right.


Question editor of the classic editor with the Statistics section open: Show in public statistics, Display chart and Chart type


What participants see

When the public statistics are on and at least one question is selected, participants see a link "View the statistics for this survey." on the end page, below the usual thank you. The link opens in a new browser tab:


End page of a survey with the link View the statistics for this survey highlighted


The page shows the statistics of the selected questions. Charts are shown if Show graphs in public statistics is on and the Display chart setting of the question is on:


Public statistics page for participants with the results summary, a table of answers with counts and percentages, and a bar chart


The public statistics use the chart type of each question. Polar area and doughnut charts are shown as pie charts, and multiple choice questions always as bar charts.


Changing the look of the public statistics page

The public statistics page uses your survey theme. In the theme editor, choose the screen Public statistics to edit its template files and the CSS of the theme.

Hints & tips

Feel free to edit the following wiki sections to let other LimeSurvey users learn about statistics-related hints & tips.

Wrong font when exporting statistics - what to do?

The charts of the PDF output use the font DejaVu Sans. For some languages (like Chinese), this font does not cover the needed characters. LimeSurvey already uses other fonts for some of these languages ($alternatechartfontfile). Otherwise, set a TTF font file with $chartfontfile in config.php (see config-defaults.php for the right setting). The font file must be in the assets/fonts folder of LimeSurvey. For Chinese (Simplified and Traditional), you can use for example the FireFlySung font, which can be downloaded from GitHub.

FAQ

Why do the percentages not match my complete responses?

The charts of the Statistics page count all responses, including incomplete ones. For statistics of complete responses only, open the expert mode with Export statistics and set Include to Complete only.

Can participants see the statistics?

Only if you publish them. See Public statistics.

How do I get the raw data for my own analysis?

Export your responses as a CSV, Excel, SPSS, R or Stata file. See Export responses.

5 point choice question type - what do the values in the "Top 2, Middle, Bottom 2" column represent?

For the 5 point choice question type and the array (5 point choice) question type, the HTML statistics have a fourth column Top 2, Middle, Bottom 2 (called Sum in the PDF and Excel output). It groups the answers like this:


Statistics summary of a rating question with the column Top 2, Middle, Bottom 2 highlighted


The column groups the answers this way because survey administrators usually interpret rating questions like this:

  • Y percent of the participants DISLIKE item ABC, where Y represents the percentage of those who answered "1" and "2"
  • X percent of the participants LIKE item ABC, where X represents the percentage of those who answered "4" and "5"
  • Z percent of the participants have a NEUTRAL opinion about item ABC, where Z represents the percentage of those who answered "3"

The percentages of this column are based on the valid answers (Total(valid)): responses with No answer and responses where the question was not completed or not displayed are left out. The Gross percentage column is based on all responses (Total(gross)). The column is shown if $config['showaggregateddata'] is 1, which is the default (see config-defaults.php).


Answer Count Gross percentage Top 2, Middle, Bottom 2
1 1 5.56% 23.08% (the percentage of those who answered "1" and "2")
2 2 11.11%
3 1 5.56% 7.69% (the percentage of those who answered "3" - the neutral option)
4 6 33.33%
5 3 16.67% 69.23% (the percentage of those who answered "4" and "5")
Total(valid) 13 100.00%
No answer 3 16.67%
Not completed or not displayed 2 11.11%
Total(gross) 18 100.00%

See also