Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:functions:statistic [02.12.2014 20:07] – [Valid Percent] alexander.ritteren:create:functions:statistic [02.12.2014 23:02] alexander.ritter
Line 3: Line 3:
 ''mixed **statistic**(string //statistic//, array|string //variables//, mixed //option//, [boolean //alldata//])'' ''mixed **statistic**(string //statistic//, array|string //variables//, mixed //option//, [boolean //alldata//])''
  
-The function statistic() can determine univariate specific values from the data record (across all previous interviews).+The function statistic() can determine specific univariate data from the data record (across all previous interviews).
  
  
Line 81: Line 81:
 ===== Mode: Value that Occurs Most Frequently ===== ===== Mode: Value that Occurs Most Frequently =====
  
-Returns the value that has been selected most frequently so far. If multiple values have been selected equally often then these are returned separated by a comma. +This returns the value that has been selected most frequently so far. If multiple values have been selected equally often then these are returned separated by a comma. 
  
 As a third argument (in this instance a Boolean), it is possible to specify if invalid values (no answer etc.) should also be counted. As a third argument (in this instance a Boolean), it is possible to specify if invalid values (no answer etc.) should also be counted.
Line 105: Line 105:
 ===== Min, Max and Mean of the Valid Data ===== ===== Min, Max and Mean of the Valid Data =====
  
-The statistics '''min''', '''mean''' und '''max''' only calculate a correct value if numerical values exist for the question. Data in a text input is ignored if it is not a number -- unless (''true''is given for the third parameter, that invalid values should also be entered in the statistics. +The statistics '''min''', '''mean''' und '''max''' only calculate a correct value if numerical values exist for the question. Data in a text input is ignored if it is not a number -- unless is it is specified that invalid values should also be entered into the statistics (''true'') as the third parameter
  
-If no valid values are available up to now, 0 is returned for the '''mean'', and the value ''false'' for the ''min'' and ''max''+If no valid values are available, 0 is returned as the '''mean'', and the value ''false'' as the ''min'' and ''max''
  
 <code php> <code php>
en/create/functions/statistic.txt · Last modified: 03.05.2024 09:21 by jdupont
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki