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 [11.12.2014 21:31] alexander.ritteren:create:functions:statistic [29.09.2020 17:55] – [statistic()] sophia.schauer
Line 14: Line 14:
     * '''max''' -- highest value.     * '''max''' -- highest value.
     * '''mean''' -- arithmetic mean of the values.     * '''mean''' -- arithmetic mean of the values.
 +    * '''groupmean''' -- Arithmetic mean of the values of a subgroup defined by //Option//, specified as Sting consisting of variable name and code for the cases to be counted '''AB01=2'''.
 +    * '''filter''' -- Determines which cases should be used for further calls to the ''statistic()'' function (for details see [[#partial_evaluate_sets|down]]). xx!!
 +
   * //variables//\\ Determines which variable(s) the statistic should be calculated for. The IDs of the individual variables can be found in the **Variables Overview**. If the statistic requires multiple variables, these can be given as a comma-separated string or as an array.   * //variables//\\ Determines which variable(s) the statistic should be calculated for. The IDs of the individual variables can be found in the **Variables Overview**. If the statistic requires multiple variables, these can be given as a comma-separated string or as an array.
   * //option//\\ Some statistics call for or allow a third entry which is set with this parameter (see below).   * //option//\\ Some statistics call for or allow a third entry which is set with this parameter (see below).
Line 95: Line 98:
 } else { } else {
   // answer options text (statistic() only provides the numeric code)   // answer options text (statistic() only provides the numeric code)
-  $text = getValuetext('AB01_02', $mode);+  $text = getValueText('AB01_02', $mode);
   html('   html('
     <p>The most common answer for this question was: '.$text.'.</p>     <p>The most common answer for this question was: '.$text.'.</p>
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