Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:create:functions:statistic [11.12.2014 21:31] – alexander.ritter | en:create:functions:statistic [29.09.2020 17:55] – [statistic()] sophia.schauer |
---|
* '''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). |
} 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> |