Actions

Statistics/zh-cn: Difference between revisions

From LimeSurvey Manual

(Created page with "统计")
 
(Updating to match new version of source page)
 
(92 intermediate revisions by 2 users not shown)
Line 4: Line 4:




=General=
=常规=




The statistics feature is available from the responses toolbar by clicking first on the "Response and Statistics" menu entry located in the last drop-down menu, [[Responses]] (which is only available if a survey has been activated):
<div class="mw-translate-fuzzy">
统计功能通过位于最后的下列列表菜单[[Responses|反馈]]下的菜单来调用 "反馈和统计" (仅在调查处于活动状态可用):
</div> 
 
The statistics feature is located under the responses menu of an active survey: '''Responses''' > '''Responses and Statistics'''
[[Responses]] is only available if a survey has been activated.




Line 13: Line 18:




Look for the Statistics button located on the top toolbar and click on it:
<div class="mw-translate-fuzzy">
找到位于顶部工具栏上的统计按钮,并点击:
</div>




Line 19: Line 26:




The following page will be loaded:
<div class="mw-translate-fuzzy">
下面的页面将会被载入:
</div>




Line 25: Line 34:




The LimeSurvey statistics can be visualized in either the '''expert mode''' or '''simple mode'''. By default, the '''expert mode''' is loaded when you click on the [[Statistics]] button.
<div class="mw-translate-fuzzy">
LimeSurvey 的统计以 '''专家模式''' '''简单模式'''来呈现。点击 [[Statistics|统计]] 按钮后默认显示'''专家模式'''
</div>


=统计 - 专家模式=


=Statistics - expert mode=


<div class="mw-translate-fuzzy">
假定你正在运行一份调查,或者已经完成并打算开始分析调查结果。LimeSurvey 能够将所有结果转存到 Excel 电子表格或 CSV 文件中。你可以对相关的文件做任何操作。或者你也可以利用统计功能看看调查结果,并从中获得有用的信息。
</div>


Let's say you've got a survey running, or it is finished and you want to start analyzing the results. LimeSurvey can dump all the results into an Excel spreadsheet or CSV file. You can do whatever you want with the data from the respective file. Alternatively, you can use the statistics feature to have a look at your data and start getting some useful information from it.


The statistics - expert mode feature allows you to 'filter' your data and retrieve numbers and summaries of different fields from it. The statistics script doesn't attempt to do highly complex filtering, but you'd be surprised at the sort of information that can be easily obtained.
<div class="mw-translate-fuzzy">
统计 - 专家模式允许你对数据进行 '筛选' ,从中检索不同字段的数据和汇总。 统计脚本不会做过于复杂的筛选,但你会对唾手可得的有序信息感到意外。
</div>




==Running quick statistics==
==运行快速统计==




As it can be observed below, there is a checkbox for each question that can be selected in order to show a response summary for each question, and an icon that when clicked (or if the mouse hovers over it), it gives you the full text of the question. To view the results for a question or questions, check the checkbox(es) at the top of the question(s) and then click "View statistics".
<div class="mw-translate-fuzzy">
看下图能发现,每一个问题都有一个复选框,用来显示每个被选中问题的反馈摘要。还有一个图标,(或者鼠标在上面悬停的话),点击的时候会显示问题的完整文本信息。要查看一个或多个问题的反馈结果,点击问题上方的复选框,然后再点击 "查看统计"
</div>




Line 45: Line 62:




Alternatively, to view the results for all available questions, enable "View summary of all available fields" and then click "View statistics":
<div class="mw-translate-fuzzy">
或者,要查看所有问题的反馈结果,启用 "查看所有可用的字段的概要" 然后点击"查看统计":
</div>




Line 51: Line 70:




You will then be given a "Results" table which will indicate the number of cases and a "Field Summary" table for each question selected which summarizes all possible answers in the question(s), their totals, and their corresponding percentage.
<div class="mw-translate-fuzzy">
你会得到一份显示调查数量的 "结果" 表格,还有一份为每个选定问题提供的"字段摘要" 表格,总结问题中所有可能的答案,总数,还有相应的百分比。
</div>




Line 57: Line 78:




{{Note|Please note that the statistics are displayed on the same page because the default [[Statistics#Output format and options|output format]] is HTML. If this is changed to PDF or Excel, then a pop-up will appear once the "View statistics" button is pressed, asking you to save the respective file on your machine.}}
<div class="mw-translate-fuzzy">
 
{{Note|请注意统计信息会显示在同一个页面里,因为默认的 [[Statistics#Output format and options|输出格式]] 是 HTML。如果这个信息被变成 PDF 或是 Excel ,那么一旦 "查看统计" 按钮被按下后会有一个弹出窗口显示,要求你在机器上保存相应的文件。}}
</div>


==Filtering data==
==数据过滤==




Two types of filters exist: [[Statistics#General filters|general]] and [[Statistics#Response filters|response filters]].
已经存在的两类过滤:[[Statistics#General filters|常规]] [[Statistics#Response filters|反馈过滤]]




===General filters===
===常规过滤===




As the name suggests, it refers to filters at the general (macro) level:
<div class="mw-translate-fuzzy">
顾名思义,它是指一般(宏)级别的过滤器:
</div>




Line 75: Line 99:




The filters can be related to:
筛选器可以与以下内容相关:
 


* '''Data selection'''
** ''The type of responses:''
*** Complete responses: responses that contain a submission date
*** Incomplete responses: answers that do not contain a submission date
*** All records: the aggregated number of complete and incomplete responses.
** ''Statistics report language:'' if additional languages are used, this filter option is useful to divide respondents based on the language they used to fill out your survey.


<div class="mw-translate-fuzzy">
* '''数据选择'''
** ''反馈类型:''
*** 完整反馈: 包含提交日期的反馈
*** 不完整反馈: 答案没有提交日期
*** 所有记录: 完整和不完整反馈的合计数。
** ''统计报告,语言:'' 如果使用其他语言,则此过滤器选项可用于根据受访者填写调查表所使用的语言对受访者进行划分。
</div>


{{Note|For a discussion on incomplete responses, see the [[Responses & statistics#Responses summary|response summary]] wiki section.}}


<div class="mw-translate-fuzzy">
{{Note|关于不完整反馈的讨论,请查看 [[Responses & statistics#Responses summary|反馈摘要]] 的百科部分。}}
</div>


<div class="simplebox"> Two attributes are located within the "Data selection" box:
*'''View summary of all available field:''' it is turned off by default. By enabling it, all the survey questions and groups will be taken into account when running the statistics script
*'''Subtotals based on displayed questions:''' it is deactivated by default. It counts stats for each question based only on the total number of responses for which the question was displayed (good way to filter the unfinished/incomplete responses).</div>


<div class="mw-translate-fuzzy">
<div class="simplebox">  两个属性位于 "数据选择" 框内:
*'''查看所有可用字段的摘要:''' 默认关闭。启用后,在运行统计脚本的时候将考虑所有调查的问题和组。
*'''按显示问题小计:''' 默认关闭。它仅基于显示该问题的反馈总数来统计每个问题的统计信息 (过滤 未完成/不完整 反馈的好方法).</div>
</div>


* '''Response ID:''' use the ID number to filter your gathered responses


* '''Submission date:''' displayed only if [[Notifications_%26_data#Save_timings|timings is enabled]]. You can filter the data based on the submission date of your collected responses.
<div class="mw-translate-fuzzy">
* '''反馈 ID:''' 使用 ID 的数字过滤生成的反馈
</div>


To get the answers filtered according only to the '''general filters''', enable the "View summary of all available field" option and click on the '''View statistics''' button located in the upper-right part of the screen.
<div class="mw-translate-fuzzy">
* '''提交时间:''' 仅在 [[Notifications_%26_data#Save_timings|计时启用]] 显示。可以基于收集到的反馈的提交时间来过滤数据。
</div>


<div class="mw-translate-fuzzy">
要想得到仅针对 '''常规过滤''' 的过滤结果,启用 "查看所有可用字段的摘要" 选项,并点击位于屏幕右上端的 '''查看统计''' 按钮。
</div>


===Response filters===
===反馈过滤器===




Depending on the used [[Question types|question type]], different fields may be used to filter your answers:
依据使用的 [[Question types|问题类型]] 不同,会使用不同的字段过滤答案:


* '''By response:''' click on one or more responses in the list under each question to filter the data by those responses (use CTRL/click to select multiple responses in the same question). Note that if you choose to view the summary of all available fields (checkbox at top) you will need to select your response filters before checking that box.
<div class="mw-translate-fuzzy">
* '''按反馈:''' 点击每个问题下方列表中的一个或多个反馈,使用这些反馈过滤数据 (按住 CTRL 可以多选在同一个问题下的反馈)。注意,如果要使用查看所有可用字段的摘要 (顶部的复选框),你需要在选中复选框前选择反馈过滤器。
</div>


* '''By text:''' you can search the responses to a free text question type (and similar types) by entering a text. If you want to search for a partial string you can use the percentage sign (%) as wildcard. E.g.: If you look for 'Tom%', it will find entries with 'Tomb' and 'Tommy', etc.
<div class="mw-translate-fuzzy">
* '''按文本:''' 可以通过输入文本来查找简单文本问题类型(或类似类型)的反馈。如果要如果要搜索部分字符串,可以使用百分号(%)作为通配符。例如:如果要查找 'Tom%',会找到有 'Tomb' 'Tommy' 等的条目。
</div>


* '''By numerical value:''' you can search the responses that contain a certain numerical value if number-based question types are used.
<div class="mw-translate-fuzzy">
* '''按数值:''' 如果使用了基于数字的问题类型,可以搜索包含特定数值的反馈。
</div>




Line 116: Line 157:




Selecting "View statistics" will then give you the "Results" table, indicating the number of responses matching your criteria, and a "Field Summary" table for each question selected which summarizes all possible answers in the question(s), their totals and their percentage. It is important to note that these results are a subset of your total responses. So, for example, if your criteria display 146 records out of a total 180, the summary will show the breakdown of just those 146 records for that table.
<div class="mw-translate-fuzzy">
选择 "查看统计" 将会提供 "结果" 表格,说明符合你条件的反馈的数量,还有一份为每个选定问题提供的"字段摘要" 表格,总结问题中所有可能的答案,总数,还有相应的百分比。要注意的是,这些结果都是全部反馈的子集。因此,举例来说,如果你的条件是显示180条中记录中的146条,摘要就会只显示表中146条记录的详细。
</div>


The images below indicate that I have elected to view the stats for "Employment status" of '''''completed records/female/age 18-25'''''. This gives me the results for 6 out of 13 records.
<div class="mw-translate-fuzzy">
下图显示我选择查看 '''''完整记录/女性/年龄 18-25''''' 的 "就业状况"。给出的结果是13条记录中的6条。
</div>




Line 133: Line 178:




{{Alert|title=Things to be cautious of|
{{Alert|title=注意事项|
*If you set criteria on the same question that you ask for a summary, then that question will only present answers matching your criteria. So it is good practice '''not''' to set any criteria on the same question you are getting a summary of.
*如果你在同一个问题上设置条件来获取摘要,那么结果就只会展示符合你条件的答案内容。所以最佳实践是 '''''' 要在你要获取摘要的同一个问题上设置任何条件。
*To select multiple entries for a question hold down the CTRL button when clicking. To "unselect" the last criteria (if you want to clear all criteria from a question) click on the respective highlighted answer while holding pressed the CTRL button.}}
*要选择一个问题的多个条目,按住 CTRL 键的同时点击选择。要 "取消选择" 最后的条件(如果你清空一个问题上的所有条件),按住CTRL 键的同时点击相应的突出显示的问题。}}
 


==Graphs==
==图表==




{{Note|For technical reasons the Excel output does '''not''' contain any charts. If the PDF output is selected, charts are limited to pie charts (single choice questions) and bar charts (multiple choice question types).}}
{{Note|处于技术原因 Excel 输出中 '''''' 包含任何图表。如果选择输出 PDF ,图表仅限于饼图 (单选问题类型) 和柱状图 (多选问题类型).}}




For charting, the library pChart is used, which is completely included and usually doesn't have to be configured.
对于图表,已经使用,并完全包含了pChart 库,通常不需要做任何配置。


After the graphs have been generated you can export them easily. Right click on a graph and choose "Save image as", then save the graph as a .png file to your chosen location.
<div class="mw-translate-fuzzy">
图表被创建之后,你可以很容易导出这些图表。右键点击图表,并选择 "图片另存为",然后图片将会以 .png 格式保存在你选定的位置。
</div>


You can also use the "Export images" function to save all the graphs to your machine:
<div class="mw-translate-fuzzy">
你也可以使用 "导出图片" 功能将所有图片保存到你的计算机:
</div>




Line 154: Line 202:




<div class="simplebox"> [[File:help.png]] Please note that LimeSurvey cannot create graphs from certain types of question. For example, the [[Question type - Numerical input|numerical input question type]] cannot be visualized with the help of graphs. However, a simple table with values such as count, sum, standard deviation, average, minimum, median, and maximum is displayed in its case:
<div class="simplebox"> [[File:help.png]] 请注意 LimeSurvey 不能为某些类型的问题创建图表。例如,[[Question type - Numerical input|数字输入类型]] 不能用图表实现可视化。然而,这种情况下,将会显示一个有数值的简单表格,内容包括计数,合计,标准偏差,平均值,最小值,中位数和最大值:




Line 160: Line 208:




To see which questions can make use of statistics and/or graphs, you have to read each question type manual entry from [[Question types|here]]. If tab statistics is available, check which options are displayed under this tab. Three statistics attributes exist: [[QS:Chart type|chart type]], [[QS:Display chart|display chart]], and [[QS:Public statistics|public statistics]].</div>
<div class="mw-translate-fuzzy">
 
你需要从 [[Question types|这里here]] 阅读每个问题类型的手册,以便知道那些问题可以使用统计和图表。如果统计标签可用的话,请查看显示在标签内的选项。现有的3个统计属性:[[QS:Chart type|图表类型]], [[QS:Display chart|显示图表]], and [[QS:Public statistics|公共统计]].</div>
=="incomplete responses", "no answers" and "not completed/not displayed" counts==
</div>


<div class="mw-translate-fuzzy">
=="不完整反馈", "无答案" 和 "未完成/未显示" 计数==
</div>


*'''incomplete responses''': all responses that started to be filled out by respondents, but weren't completed. A response started when the participant clicked the "Next" button in the survey, but did not click the "Submit" button in the end (did not land on the end page of your survey).


Technically speaking, this is when there is no SubmitDate in the [[Responses|response table]] for this entry, but new data set was created already.
<div class="mw-translate-fuzzy">
*'''不完整反馈''':所有的反馈都已开始由受访者填写完毕,但并不完整。一份反馈由参与者在调查中点击 "下一步" 按钮开始,但最后却没有点击 "提交" 按钮(没有浏览到调查的最后一页)。
</div>


*'''no answer''': when the question was displayed, but the participant hasn't given an answer.
<div class="mw-translate-fuzzy">
从技术角度来说,当新的数据集创建之后,[[Responses|反馈表]] 中该条目却没有提交日期。
</div>


Technically speaking, this is when 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.
<div class="mw-translate-fuzzy">
*'''无答案''':问题显示之后,参与者没有给出答案。
</div>


*'''not completed/not displayed''': when the page containing the question was not displayed. This can be because of conditions, or just because the participant left the survey before this page was displayed (or just while this page is displayed, but without clicking the Next button).
<div class="mw-translate-fuzzy">
从技术上说,非必填项问题显示之后没有接收到答案,用户点击了 "下一步" 或是 "提交"。结果就是数据库字段将这个问题的答案设置成 "" (空字符串)。对于数据库字段无法保存字符串的''日期''或纯''数字问题'',无法真正计算这种''无答案''状态。
</div>


Technically speaking, the database field for this question is filled with a NULL value.
<div class="mw-translate-fuzzy">
*'''未完成/未显示''':当页面包含没有被显示的问题。可能是条件所致,或着只是参与者在页面显示完之前退出了调查(或者页面显示完成,但没有点击下一步按钮)。
</div>


<div class="mw-translate-fuzzy">
技术上说,这个问题的数据库字段被填充为空值(NULL)。
</div>


==Output format and options==
==输出格式和选项==




The statistics can be displayed under three different formats:
<div class="mw-translate-fuzzy">
统计数据可以用3种不同的格式显示:
</div>




Line 187: Line 252:




* '''HTML''' (default option): the statistics are displayed in LimeSurvey
<div class="mw-translate-fuzzy">
* '''PDF''': a popup will be displayed, asking to save the statistics as a PDF file
* '''HTML''' (默认选项):在 LimeSurvey 页面显示统计信息
* '''Excel''': To further work with your (filtered) data, choose Excel. You can export the file from a spreadsheet application to CSV to work with more advanced statistical tools such as SPSS or R.
* '''PDF''':将显示一个弹出窗口,要求将统计信息另存为PDF文件
* '''Excel''':要想进一步的处理统计数据(过滤后的),请选择 Excel。也可以使用电子表格将文件导出为 CSV,以便更高级的统计工具,如 SPSS R 来使用。
</div>




The output options can be used to alter the way in which the statistics are displayed. The following options are available:
<div class="mw-translate-fuzzy">
输出选项可用更改统计信息的显示方式。可用的选项如下:
</div>




Line 198: Line 267:




*'''Show text responses inline:''' it is disabled by default. It shows the text questions responses without having to click on a browse button (if enabled; useful for the HTML version of output format)
<div class="mw-translate-fuzzy">
 
*'''内联显示文本反馈:''' 默认禁用。无需点击浏览按钮就可以显示文本问题的反馈。(启用后对 HTML 格式的输出有用)
*'''Show graphs:''' it is disabled by default. If enabled, graphs will be displayed
</div>


*'''Number of columns:''' two is the default number. If you wish to have statistics and graphs displayed on only one or three columns, choose the desired value from this option. It applies to HTML statistics.
<div class="mw-translate-fuzzy">
*'''显示图表:''' 默认禁用。启用后会显示图表。
</div>


*'''Graph labels:''' choose how the label should look like in the graph.
<div class="mw-translate-fuzzy">
**''Question code''
*'''列数:''' 默认数字为2。如果你要在一列或三列里显示统计信息和图表,用此选项设置你希望的数字。应用于 HTML 格式的统计信息。
**''Question text''
</div>
**''Both''


*'''Chart type:''' the following chart type settings are available:
<div class="mw-translate-fuzzy">
**''As defined in question settings:'' useful if you wish the graph not to be displayed. If this is the case, deactivate it from the question settings and select from the "Statistics" panel this option.
*'''图表标签:''' 选择图表中标签的样式。
**''Bar chart''
**''问题代码''
**''Pie chart''
**''问题文本''
**''Radar chart''
**''两个都有''
**''Line chart''
</div>
**''Polar chart''
**''Doughnut chart''


==Embed custom logo at statistic PDF==
<div class="mw-translate-fuzzy">
(available for Limesurvey 3.x since 12/2018)
*'''图表类型:''' 以下图表类型有效:
**''按照问题设置定义:'' 在你不希望显示图表时使用。在本例中,先在问题设置中停用,再在"统计" 面板中选择本选项。
**''柱状图''
**''饼图''
**''雷达图''
**''线状图''
**''坐标图''
**''环状图''
</div>


If you want to embed your own logo to the statistics PDF, then make sure a file named exactly "statistics.jpg" is placed within the "images" folder of the [[Custom_Admin_Themes|admin theme]] used for your system. Which admin theme is used can be set at the [[Global_settings#General|Global Settings]].
<div class="mw-translate-fuzzy">
==在 PDF 统计信息中嵌入自定义徽标==
(自 12/2018 后 Limesurvey 3.x 可用 )
</div>


<div class="mw-translate-fuzzy">
如果你要在 PDF 统计信息中嵌入自己的徽标,那么要确保系统的 [[Custom_Admin_Themes|管理模板]] 的 "images" 文件夹中一定有"statistics.jpg" 文件。使用哪个管理模板可以在 [[Global_settings#General|全局设置]] 中设置。
</div>


=Statistics - simple mode=
=统计 - 简单模式=




The simple mode was created in order to provide simple bar chart statistics that can be quickly exported and saved, and then included into a presentation:
<div class="mw-translate-fuzzy">
简单模式是为了提供包含简单条状图的统计信息,并可以快速导出和保存这些统计信息到演示文稿中。
</div>




Line 233: Line 317:




As you can observe, fewer graphs are displayed than in the expert mode. While in the export mode you can display graphs with respect to those who filled out the survey, did not answer it or did not finish completing it, the simple mode displays only statistics that rely on the "countable" data submitted by the respondents (e.g., single or multiple choice questions as well as array questions).
<div class="mw-translate-fuzzy">
如你所见,比专家模式显示的图表少很多。在专家模式里,你可以用图表显示谁完成了调查,没有填写答案或是没有完全完成调查,简单模式显示的仅是依赖于受访者提交的 "能计算的" 的数据的统计信息 (比如,单选或多选问题,也包括阵列问题)
</div>


There is only one option to filter the data within the simple mode - via the responses to be included in the statistics. As a result, the statistics may include the complete responses, incomplete responses, or all responses (the aggregated sum of the first two options). This option is located in the upper-right part of the panel.
简单模式只有一个选项过滤数据 - 通过包含在统计信息内的反馈。结果是,统计信息可能包括完整反馈,不完整反馈或是全部反馈 (前两项的总和)。选项位于面板的右上部。


To switch back to [[Statistics#Statistics - expert mode|expert mode]], look for the "Expert mode" button located in the upper-right part of the screen:
<div class="mw-translate-fuzzy">
要切换回 [[Statistics#Statistics - expert mode|专家模式]],在屏幕右上方的位置寻找 "专家模式" 按钮:
</div>




Line 243: Line 331:




{{Note|If you wish to have direct access to the simple mode of Statistics, LimeSurvey allows you to create your own entries in the menu. For more information, check the [[Menu entries configuration|menu entries configuration wiki section]].}}  
<div class="mw-translate-fuzzy">
 
{{Note|如果你想直接访问统计的简单模式,LimeSurvey 允许你创建自己的菜单条目。更多信息查看百科部分的 [[Menu entries configuration|菜单条目配置]]}}
</div>


=Public Statistics=
<div class="mw-translate-fuzzy">
=公共统计=
</div>




LimeSurvey includes the functionality to display simple statistics to the general public or to your participants after they have ended filling out an online survey.
<div class="mw-translate-fuzzy">
LimeSurvey 包含在公众或你的参与者填写完调查后,对他们显示在线调查的简单统计信息的功能。
</div>


Two components need to be enabled in order to activate and display statistics to your participants. The first one refers to the public statistics of your survey which must be enabled (it is turned off by default). It is located under the [[Presentation]] tab. To also show graphs, look on the same page for the [[Presentation#Show_graphs_in_public_statistics|Show graphs in public statistics attribute]] and enable it (it is disabled by default).
<div class="mw-translate-fuzzy">
为了激活并向你的参与者显示统计信息,需要两个组件。 第一个是关于调查的公共统计信息,必须要启用 (默认是关闭的)。该组件位于 [[Presentation|展示]] 标签下面。若还要展示图表的话,启用同一个页的 [[Presentation#Show_graphs_in_public_statistics|在公共统计中显示图表属性]] (默认是禁用的)
</div>




Line 257: Line 352:




Once you have set your survey to display statistics, you need to indicate question-by-question which statistics you want to be displayed to your respondents. By default, no questions will be displayed. To have them displayed, access the desired question, look for the "Statistics" tab and enable the [[QS:Public statistics|Show in public statistics]] attribute.
一旦设置了在调查中显示统计信息,你需要逐个问题的向你的受访者展示统计信息。默认不会显示任何问题。要想显示某个问题,打开想要的问题,找到 "统计" 标签并启用 [[QS:Public statistics|在公共统计信息中显示]] 属性。




Line 263: Line 358:




==What participants see==
==参与者能看到什么==




Once you have enabled public statistics and selected some questions to display, an additional option will be visible to participants when they end filling out your survey. In addition to the usual thank you, there will be a link to "View the statistics for this survey":
<div class="mw-translate-fuzzy">
一旦启用了公共统计,并选择了一些要显示的问题。参与者在完成调查的时候会看到一个附加的选项。就是在通常是感谢的后面会有一条 "查看本调查统计信息" 的链接:
</div>




Line 272: Line 369:




The survey statistics will be displayed on this page. Graphs can also be displayed by enabling the [[QS:Display chart|Display chart]] question attribute:
调查的统计信息会显示在这个页面上。图表会在启用 [[QS:Display chart|显示图表]] 选项后被显示出来。




Line 278: Line 375:




{{Note|Please note that only bar charts can be displayed in public statistics.}}
{{Note|请注意公共统计信息只显示柱状图。}}
 


==Changing the look of the public statistics page==


==改变公共统计信息页面的外观==


The looks of the public statistics page can be modified via template.css (search for "#statsContainer"). However, there is currently no template of it's own that can be edited in the [[Theme editor|LimeSurvey theme editor]].


<div class="mw-translate-fuzzy">
通过编辑 template.css 文件修改公共统计信息页面的外观(查找 "#statsContainer")。但是,当前尚无可在[[Theme editor | LimeSurvey 模板编辑器]] 中进行编辑的模板。
</div>


=Hints & tips=
=提示与技巧=




Feel free to edit the following wiki sections to let other LimeSurvey users learn about statistics-related hints & tips.
请随意编辑以下百科部分,从而让其他 LimeSurvey 用户了解统计相关的提示与技巧。




==Wrong font when exporting statistics. What to do?==
<div class="mw-translate-fuzzy">
==输出统计信息时的有错误字体,怎么办?==
</div>




For some languages (like Chinese), the usual font used (Vera) does not cover the needed character set. In that case you can use the setting $chartfontfile to set a new TTF font file in config.php (Check out config-defaults.php for the right setting). For Chinese (Simplified and Traditional), another font has to be used such as the FireFlySung font which can be downloaded from [https://github.com/rougier/freetype-gl/blob/master/fonts/fireflysung.ttf github].
对于某些语言 (比如中文),使用的常用字体(Vera)无法覆盖所需的字符集。在这种情况下,你可以使用 config.php 中的设置 $chartfontfile 增加新的 TTF 字体 (正确的设置请参考 config-defaults.php )。对于中文 (简体和繁体),可以使用从 [https://github.com/rougier/freetype-gl/blob/master/fonts/fireflysung.ttf github] 下载像 FireFlySung 的其他字体。




=FAQs=
=常见问题=




==5 point choice question type - what do the values located under the "Sum" column represent?==
<div class="mw-translate-fuzzy">
==5分单选问题类型 - "合计" 列下的数值代表什么?==
</div>




As it can be observed in the below screenshot, the '''"Sum"''' column shows the aggregated values in the following way:
<div class="mw-translate-fuzzy">
下面的截图能看出来,'''"合计"''' 列用下面的方式显示汇总的数值:
</div>




Line 311: Line 415:




The grouping from the '''"Sum"''' column was done in this way because, when rating questions, survey administrators usually interpret the results in this way:
'合计'''''列中的分组是通过这种方式完成的,因为在对问题进行评分时,调查管理员通常以这种方式解释结果:


*Y percent of the respondents '''DISLIKE''' item ABC, where Y represents the percentage of those who answered "1" and "2"
<div class="mw-translate-fuzzy">
*X percent of the respondents '''LIKE''' item ABC, where X represents the percentage of those who answered "4" and "5"
*受访者中 '''不喜欢''' 项目ABC 的Y%,Y 代表在答案中选择了 "1" "2" 的受访者的百分比
*Z percent of the respondents have a '''NEUTRAL''' opinion about item ABC, where Z represents the percentage of those who answered "3"
*受访者中 '''喜欢''' 项目ABC 的X%,X表示在答案中选择了 "4" "5" 的受访者的百分比
*受访者中对项目 ABC 持 '''中立''' Z%,Z 代表答案中选择了 "3" 的受访者的百分比
</div>




{| class="wikitable" style="text-align: left"
{| class="wikitable" style="text-align: left"
!Answer
!答案
!Count
!计数
!Sum
!合计
|-
|-
|1
|1
|0
|0
|50% (the percentage of those who answered "1" and "2")
|50% (回答 "1" "2" 的受访者的百分比)
|-
|-
|2
|2
Line 333: Line 439:
|3
|3
|1
|1
|25% (the percentage of those who selected "3" - the neutral option)
|25% (选择 "3" 的受访者的百分比- 中立选项)
|-
|-
|4
|4
Line 341: Line 447:
|5
|5
|1
|1
|25% (the sum of those who answered "4" and "5")
|25% (回答了 "4" "5" 的受访者的总数)
|-
|-
|Sum (Answers)
|合计 (答案)
|4
|4
|100%
|100%
|-
|-
|No answer
|无答案
|1
|1
|0% (always "0%")
|0% (总是 "0%")
|-
|-
|Not completed or displayed
|未完成或无显示
|0
|0
|0% (always "0%")
|0% (总是 "0%")
|-}
|-}

Latest revision as of 15:31, 9 July 2021


常规

统计功能通过位于最后的下列列表菜单反馈下的菜单来调用 "反馈和统计" (仅在调查处于活动状态可用):

The statistics feature is located under the responses menu of an active survey: Responses > Responses and Statistics Responses is only available if a survey has been activated.



找到位于顶部工具栏上的统计按钮,并点击:



下面的页面将会被载入:



LimeSurvey 的统计以 专家模式简单模式来呈现。点击 统计 按钮后默认显示专家模式

统计 - 专家模式

假定你正在运行一份调查,或者已经完成并打算开始分析调查结果。LimeSurvey 能够将所有结果转存到 Excel 电子表格或 CSV 文件中。你可以对相关的文件做任何操作。或者你也可以利用统计功能看看调查结果,并从中获得有用的信息。


统计 - 专家模式允许你对数据进行 '筛选' ,从中检索不同字段的数据和汇总。 统计脚本不会做过于复杂的筛选,但你会对唾手可得的有序信息感到意外。


运行快速统计

看下图能发现,每一个问题都有一个复选框,用来显示每个被选中问题的反馈摘要。还有一个图标,(或者鼠标在上面悬停的话),点击的时候会显示问题的完整文本信息。要查看一个或多个问题的反馈结果,点击问题上方的复选框,然后再点击 "查看统计"。



或者,要查看所有问题的反馈结果,启用 "查看所有可用的字段的概要" 然后点击"查看统计":



你会得到一份显示调查数量的 "结果" 表格,还有一份为每个选定问题提供的"字段摘要" 表格,总结问题中所有可能的答案,总数,还有相应的百分比。



请注意统计信息会显示在同一个页面里,因为默认的 输出格式 是 HTML。如果这个信息被变成 PDF 或是 Excel ,那么一旦 "查看统计" 按钮被按下后会有一个弹出窗口显示,要求你在机器上保存相应的文件。

数据过滤

已经存在的两类过滤:常规反馈过滤


常规过滤

顾名思义,它是指一般(宏)级别的过滤器:



筛选器可以与以下内容相关:


  • 数据选择
    • 反馈类型:
      • 完整反馈: 包含提交日期的反馈
      • 不完整反馈: 答案没有提交日期
      • 所有记录: 完整和不完整反馈的合计数。
    • 统计报告,语言: 如果使用其他语言,则此过滤器选项可用于根据受访者填写调查表所使用的语言对受访者进行划分。


关于不完整反馈的讨论,请查看 反馈摘要 的百科部分。


两个属性位于 "数据选择" 框内:
  • 查看所有可用字段的摘要: 默认关闭。启用后,在运行统计脚本的时候将考虑所有调查的问题和组。
  • 按显示问题小计: 默认关闭。它仅基于显示该问题的反馈总数来统计每个问题的统计信息 (过滤 未完成/不完整 反馈的好方法).


  • 反馈 ID: 使用 ID 的数字过滤生成的反馈
  • 提交时间: 仅在 计时启用 显示。可以基于收集到的反馈的提交时间来过滤数据。

要想得到仅针对 常规过滤 的过滤结果,启用 "查看所有可用字段的摘要" 选项,并点击位于屏幕右上端的 查看统计 按钮。

反馈过滤器

依据使用的 问题类型 不同,会使用不同的字段过滤答案:

  • 按反馈: 点击每个问题下方列表中的一个或多个反馈,使用这些反馈过滤数据 (按住 CTRL 可以多选在同一个问题下的反馈)。注意,如果要使用查看所有可用字段的摘要 (顶部的复选框),你需要在选中复选框前选择反馈过滤器。
  • 按文本: 可以通过输入文本来查找简单文本问题类型(或类似类型)的反馈。如果要如果要搜索部分字符串,可以使用百分号(%)作为通配符。例如:如果要查找 'Tom%',会找到有 'Tomb' 和 'Tommy' 等的条目。
  • 按数值: 如果使用了基于数字的问题类型,可以搜索包含特定数值的反馈。



选择 "查看统计" 将会提供 "结果" 表格,说明符合你条件的反馈的数量,还有一份为每个选定问题提供的"字段摘要" 表格,总结问题中所有可能的答案,总数,还有相应的百分比。要注意的是,这些结果都是全部反馈的子集。因此,举例来说,如果你的条件是显示180条中记录中的146条,摘要就会只显示表中146条记录的详细。

下图显示我选择查看 完整记录/女性/年龄 18-25 的 "就业状况"。给出的结果是13条记录中的6条。






  注意事项 :
  • 如果你在同一个问题上设置条件来获取摘要,那么结果就只会展示符合你条件的答案内容。所以最佳实践是 要在你要获取摘要的同一个问题上设置任何条件。
  • 要选择一个问题的多个条目,按住 CTRL 键的同时点击选择。要 "取消选择" 最后的条件(如果你清空一个问题上的所有条件),按住CTRL 键的同时点击相应的突出显示的问题。


图表

处于技术原因 Excel 输出中 包含任何图表。如果选择输出 PDF ,图表仅限于饼图 (单选问题类型) 和柱状图 (多选问题类型).


对于图表,已经使用,并完全包含了pChart 库,通常不需要做任何配置。

图表被创建之后,你可以很容易导出这些图表。右键点击图表,并选择 "图片另存为",然后图片将会以 .png 格式保存在你选定的位置。

你也可以使用 "导出图片" 功能将所有图片保存到你的计算机:



请注意 LimeSurvey 不能为某些类型的问题创建图表。例如,数字输入类型 不能用图表实现可视化。然而,这种情况下,将会显示一个有数值的简单表格,内容包括计数,合计,标准偏差,平均值,最小值,中位数和最大值:



你需要从 这里here 阅读每个问题类型的手册,以便知道那些问题可以使用统计和图表。如果统计标签可用的话,请查看显示在标签内的选项。现有的3个统计属性:图表类型, 显示图表, and 公共统计.

"不完整反馈", "无答案" 和 "未完成/未显示" 计数


  • 不完整反馈:所有的反馈都已开始由受访者填写完毕,但并不完整。一份反馈由参与者在调查中点击 "下一步" 按钮开始,但最后却没有点击 "提交" 按钮(没有浏览到调查的最后一页)。

从技术角度来说,当新的数据集创建之后,反馈表 中该条目却没有提交日期。

  • 无答案:问题显示之后,参与者没有给出答案。

从技术上说,非必填项问题显示之后没有接收到答案,用户点击了 "下一步" 或是 "提交"。结果就是数据库字段将这个问题的答案设置成 "" (空字符串)。对于数据库字段无法保存字符串的日期或纯数字问题,无法真正计算这种无答案状态。

  • 未完成/未显示:当页面包含没有被显示的问题。可能是条件所致,或着只是参与者在页面显示完之前退出了调查(或者页面显示完成,但没有点击下一步按钮)。

技术上说,这个问题的数据库字段被填充为空值(NULL)。

输出格式和选项

统计数据可以用3种不同的格式显示:



  • HTML (默认选项):在 LimeSurvey 页面显示统计信息
  • PDF:将显示一个弹出窗口,要求将统计信息另存为PDF文件
  • Excel:要想进一步的处理统计数据(过滤后的),请选择 Excel。也可以使用电子表格将文件导出为 CSV,以便更高级的统计工具,如 SPSS 或 R 来使用。


输出选项可用更改统计信息的显示方式。可用的选项如下:



  • 内联显示文本反馈: 默认禁用。无需点击浏览按钮就可以显示文本问题的反馈。(启用后对 HTML 格式的输出有用)
  • 显示图表: 默认禁用。启用后会显示图表。
  • 列数: 默认数字为2。如果你要在一列或三列里显示统计信息和图表,用此选项设置你希望的数字。应用于 HTML 格式的统计信息。
  • 图表标签: 选择图表中标签的样式。
    • 问题代码
    • 问题文本
    • 两个都有
  • 图表类型: 以下图表类型有效:
    • 按照问题设置定义: 在你不希望显示图表时使用。在本例中,先在问题设置中停用,再在"统计" 面板中选择本选项。
    • 柱状图
    • 饼图
    • 雷达图
    • 线状图
    • 坐标图
    • 环状图

在 PDF 统计信息中嵌入自定义徽标

(自 12/2018 后 Limesurvey 3.x 可用 )

如果你要在 PDF 统计信息中嵌入自己的徽标,那么要确保系统的 管理模板 的 "images" 文件夹中一定有"statistics.jpg" 文件。使用哪个管理模板可以在 全局设置 中设置。

统计 - 简单模式

简单模式是为了提供包含简单条状图的统计信息,并可以快速导出和保存这些统计信息到演示文稿中。



如你所见,比专家模式显示的图表少很多。在专家模式里,你可以用图表显示谁完成了调查,没有填写答案或是没有完全完成调查,简单模式显示的仅是依赖于受访者提交的 "能计算的" 的数据的统计信息 (比如,单选或多选问题,也包括阵列问题)。

简单模式只有一个选项过滤数据 - 通过包含在统计信息内的反馈。结果是,统计信息可能包括完整反馈,不完整反馈或是全部反馈 (前两项的总和)。选项位于面板的右上部。

要切换回 专家模式,在屏幕右上方的位置寻找 "专家模式" 按钮:



如果你想直接访问统计的简单模式,LimeSurvey 允许你创建自己的菜单条目。更多信息查看百科部分的 菜单条目配置

公共统计


LimeSurvey 包含在公众或你的参与者填写完调查后,对他们显示在线调查的简单统计信息的功能。

为了激活并向你的参与者显示统计信息,需要两个组件。 第一个是关于调查的公共统计信息,必须要启用 (默认是关闭的)。该组件位于 展示 标签下面。若还要展示图表的话,启用同一个页的 在公共统计中显示图表属性 (默认是禁用的)。



一旦设置了在调查中显示统计信息,你需要逐个问题的向你的受访者展示统计信息。默认不会显示任何问题。要想显示某个问题,打开想要的问题,找到 "统计" 标签并启用 在公共统计信息中显示 属性。



参与者能看到什么

一旦启用了公共统计,并选择了一些要显示的问题。参与者在完成调查的时候会看到一个附加的选项。就是在通常是感谢的后面会有一条 "查看本调查统计信息" 的链接:



调查的统计信息会显示在这个页面上。图表会在启用 显示图表 选项后被显示出来。



请注意公共统计信息只显示柱状图。


改变公共统计信息页面的外观

通过编辑 template.css 文件修改公共统计信息页面的外观(查找 "#statsContainer")。但是,当前尚无可在 LimeSurvey 模板编辑器 中进行编辑的模板。

提示与技巧

请随意编辑以下百科部分,从而让其他 LimeSurvey 用户了解统计相关的提示与技巧。


输出统计信息时的有错误字体,怎么办?


对于某些语言 (比如中文),使用的常用字体(Vera)无法覆盖所需的字符集。在这种情况下,你可以使用 config.php 中的设置 $chartfontfile 增加新的 TTF 字体 (正确的设置请参考 config-defaults.php )。对于中文 (简体和繁体),可以使用从 github 下载像 FireFlySung 的其他字体。


常见问题

5分单选问题类型 - "合计" 列下的数值代表什么?


下面的截图能看出来,"合计" 列用下面的方式显示汇总的数值:



“'合计列中的分组是通过这种方式完成的,因为在对问题进行评分时,调查管理员通常以这种方式解释结果:

  • 受访者中 不喜欢 项目ABC 的Y%,Y 代表在答案中选择了 "1" 和 "2" 的受访者的百分比
  • 受访者中 喜欢 项目ABC 的X%,X表示在答案中选择了 "4" 和 "5" 的受访者的百分比
  • 受访者中对项目 ABC 持 中立 的 Z%,Z 代表答案中选择了 "3" 的受访者的百分比


答案 计数 合计
1 0 50% (回答 "1" 和 "2" 的受访者的百分比)
2 2
3 1 25% (选择 "3" 的受访者的百分比- 中立选项)
4 0
5 1 25% (回答了 "4" 和 "5" 的受访者的总数)
合计 (答案) 4 100%
无答案 1 0% (总是 "0%")
未完成或无显示 0 0% (总是 "0%")