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 23:02] alexander.ritteren:create:functions:statistic [21.01.2016 13:54] – [Mode: Value that Occurs Most Frequently] hesslabor
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 specific univariate data from the data record (across all previous interviews).+The function statistic() can determine specific univariate data from the data record (across all previous questionnaires).
  
  
Line 16: Line 16:
   * //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).
-  * //alldata//\\ This entry is optional and determines that all interviews be entered into the statistics; not just those that have been completed. +  * //alldata//\\ This entry is optional and determines that all questionnaires be entered into the statistics; not just those that have been completed. 
  
-**Note:** If ''true'' is not explicitly specified for the parameter //alldata//, only completed interviews are included when calculating the statistical values.+**Note:** If ''true'' is not explicitly specified for the parameter //alldata//, only completed questionnaires are included when calculating the statistical values.
  
-**Note:** Test data collected during the developing of the questionnaire and pretesting is only included if the current interview is a part of the test as well. If the interview is being carried out as part of the regular data collection, ''statistic()'' only counts data from the regular data collection.+**Note:** Test data collected during the developing of the questionnaire and pretesting is only included if the current questionnaire is a part of the test as well. If the questionnaire is being carried out as part of the regular data collection, ''statistic()'' only counts data from the regular data collection.
  
  
Line 36: Line 36:
 html(' html('
   <p>So far,'.$numberall.' people   <p>So far,'.$numberall.' people
-  specified their gender in this survey, but the interview was+  specified their gender in this survey, but the questionnaire was
   only completed in '.$numbercompleted.' cases.</p>   only completed in '.$numbercompleted.' cases.</p>
-  <p>The completed interviews are made up of '.+  <p>The questionnaires completed are made up of '.
   $numberwomen.' women and '.   $numberwomen.' women and '.
   $numbermen.' men.</p>   $numbermen.' men.</p>
Line 95: Line 95:
 } 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: 05.09.2023 21:01 by swissel.uni-mannheim
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki