I would like to calculate the mean (average) of some numbers. Every value comes from a radiobuttons that is part of a statement. For example:
<div class="question_answer">
<div id="statementRow_9" class="clearfix t_a_ui_data_list_content">
<div class="question">
<p>3een tweede edit iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 </p>
</div>
<div class="answer">
<ul>
<li><input type="radio" name="statement_9" id="9_0" checked >0</li>
<li><input type="radio" name="statement_9" id="9_1">1</li>
<li><input type="radio" name="statement_9" id="9_2">2</li>
<li><input type="radio" name="statement_9" id="9_3">3</li></ul>
</div>
</div>
<div><hr /></div> </div> <div class="question_answer">
<div id="statementRow_10" class="clearfix t_a_ui_data_list_content">
<div class="question">
<p>3een tweede edit iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 iets 1 </p>
</div>
<div class="answer">
<ul>
<li><input type="radio" name="statement_10" id="10_0" checked >0</li>
<li><input type="radio" name="statement_10" id="10_1">1</li>
<li><input type="radio" name="statement_10" id="10_2">2</li>
<li><input type="radio" name="statement_10" id="10_3">3</li></ul>
</div>
</div>
<div><hr /></div>
The name of the radiobuttons is statement_9 where 9 is the id of the statement and the id is 9_0-9_3 where 9 is the id of the statement and 0 - 3 is the value of the radiobuttons.
The statements are grouped by categrories and the mean has to be calculated per categroy, so not one in general.
Any suggestions? Thanks!!