Model

From Peace Corps Wiki

(Difference between revisions)
Jump to: navigation, search
 
(47 intermediate revisions not shown)
Line 1: Line 1:
-
<addhtml><html><head></head><body>
+
<html><head></head><body>
-
 
+
-
Given any <b>two</b> quantities the program will calculate the rest:<br>
+
 +
<center><b>The following is based on a probabilistic model and should be taken as estimates only.</b></center><br>
 +
Given <u><b>two</b></u> quantities the program will try and estimate the remaining numbers.<br>All values should be entered as numerical symbols only ("1234" instead of "1,234")<br>
 +
<br>
<form id="model" action="form_action.asp" name="model">
<form id="model" action="form_action.asp" name="model">
<table border="0">
<table border="0">
-
<tr><td><b>Annual ET Rate</b> (decimal) <i>(a)</i>:</td>
 
-
<td><input type="text" name="a" value=" " /></td></tr>
 
-
<tr><td><b>Number of volunteers currently serving</b> <i>(c)</i>:</td>
 
-
<td><input type="text" name="c" value=" " /></td></tr>
 
-
<tr><td><b>Number of volunteers who ETed in a year</b> <i>(e)</i>:</td>
 
-
<td><input type="text" name="e" value=" " /></td></tr>
 
-
<tr><td><b>Number of volunteers who served any part of a year</b> <i>(n)</i>:</td>
 
-
<td><input type="text" name="n" value=" " /></td></tr>
 
-
<tr><td><b>Cohort ET Rate</b> (decimal) <i>(p)</i>:</td>
 
-
<td><input type="text" name="p" value=" " /></td></tr>
 
-
<tr><td><b>Number of new new volunteers entered service in a year</b> <i>(r)</i>:</td>
 
-
<td><input type="text" name="r" value=" " /></td></tr>
 
-
<tr><td><b>V-Year Method of ET Rate</b> (decimal) <i>(v)</i>:</td>
 
-
<td><input type="text" name="v" value=" " /></td></tr>
 
-
<tr><td><b>Average Length of Service among all volunteers</b> (months) <i>(L)</i>:</td>
 
-
<td><input type="text" name="L" value=" " /></td></tr>
 
-
</table>
 
-
<input type="submit" value="Calculate" />
 
-
<input type="submit" value="Clear" onClick="ClearTable();"/>
 
-
</form>
 
-
<br>
+
<tr>
-
<b>Definitions:</b><br>
+
<td></td>
 +
<td></td>
 +
<td width="100"></td>
 +
<td colspan="4"><center><i><b>Actual Numbers</b> (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">FY2009</a>) <br><small>(as suggested starting points)</small></i></center></td>
 +
</tr>
-
<b>a</b>: Annual ET rate <i>(current method used by Peace Corps)</i> The number of PCVs/Ts who separated from the Peace Corps during the fiscal year divided by the total number of trainees and volunteers who served at any time during the fiscal year. (<a href="http://peacecorpswiki.org/Early_Termination">Ref.</a>) <i><small>
 
-
[FY2009 Actual Value: 10.0% (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i><br>
 
-
<b>c</b>: The average number of currently serving volunteers and trainees at any moment in time. <i><small>[FY2009 Estimated Value: 7,596]</small></i><br>
+
<tr>
 +
<td><b>Number of Volunteers in the past year...</b></td>
 +
<td></td>
 +
<td></td>
 +
<td width="50"><center>Worldwide</center></td>
 +
<td width="50"><center>Africa</center></td>
 +
<td width="50"><center>EMA</center></td>
 +
<td width="50"><center>IMA</center></td>
 +
</tr>
-
<b>e</b>: The number of volunteers and trainees that Early Terminated within the year under study. <i><small>[FY2009 Actual value: 1,155 (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i><br>
+
<tr>
 +
<td><i>Entered Service</i></td>
 +
<td><input type="text" name="r" value="" /></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
</tr>
-
<b>n</b>: The number of volunteers and trainees that served any portion of the year under study <i><small>[FY2009 Actual Value: 11,549 (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i><br>
+
<tr>
 +
<td>Finished Service (COS)</td>
 +
<td><input type="text" name="s" value="" /></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
</tr>
-
<b>p</b>: Cohort ET rate <i>("Out of 100")</i> This method addresses the question: "If X number of people enter Peace Corps service during a given time period, how many do not complete their service?" Equivalent to the probability of a randomly selected volunteer Early Terminating sometime within their service. <i><small>[FY2009 Estimated Value: 29.2% (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i><br>
+
<tr>
 +
<td>Early Terminated (ET)</td>
 +
<td><input type="text" name="e" value="" /></td>
 +
<td></td>
 +
<td align="right"><i>1155</i></td>
 +
<td align="right"><i>406</i></td>
 +
<td align="right"><i>382</i></td>
 +
<td align="right"><i>367</i></td>
 +
</tr>
-
<b>r</b>: Number of volunteers who entered service in the year under study <i><small>[FY2009 Estimated Value: 3,953]</small></i><br>
+
<tr>
 +
<td>Currently Serving</td>
 +
<td><input type="text" name="c" value="" /></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
</tr>
-
<b>v</b>: V-Year Method of ET Rate. The number of ET's by an average volunteer during one year of service. Since most volunteers successfully complete their service, which is longer than one year, this number would be a "fraction of an ET". If the V-Year ET Rate was 0.20 (per year) we would expect about 2 volunteers out of 10 to ET per year, or about 1 volunteer out of 10 in a six-month period. (<a href="http://peacecorpswiki.org/Early_Termination">Ref.</a>) <i><small>[FY2009 Estimated Value: 0.152]</small></i><br>
+
<tr>
 +
<td>TOTAL served any part of year</td>
 +
<td><input type="text" name="n" value="" /></td>
 +
<td></td>
 +
<td align="right"><i>11549</i></td>
 +
<td align="right"><i>4365</i></td>
 +
<td align="right"><i>3494</i></td>
 +
<td align="right"><i>3690</i></td>
 +
</tr>
-
<b>L</b>: Average length of service among all volunteers (in months) <i><small>[FY2009 Estimated Value: 22.1 months]</small></i><br>
+
<tr>
 +
<td><b>Rate of Early Termination:</b></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
</tr>
-
<script language="JavaScript">
+
<tr>
-
function ClearTable()
+
<td>Cohort Method</td>
-
{
+
<td><input type="text" name="p" value="" />%</td>
-
tableRef = document.getElementById('model');
+
<td></td>
-
document.getElementById('model').deleteRow(1);
+
<td></td>
-
}
+
<td></td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td>Annual Method</td>
 +
<td><input type="text" name="a" value="" />%</td>
 +
<td></td>
 +
<td align="right"><i>10.0%</i></td>
 +
<td align="right"><i>9.3%</i></td>
 +
<td align="right"><i>10.9%</i></td>
 +
<td align="right"><i>9.9%</i></td>
 +
</tr>
 +
<tr>
 +
<td>Volunteer-Year Method</td>
 +
<td><input type="text" name="v" value="" /></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
<td></td>
 +
</tr>
-
function clearTable()
+
<tr>
-
{
+
<td><b>Statistics:</b></td>
-
var tableRef = document.getElementById('OutputTable');
+
<td></td>
-
while ( tableRef.rows.length > 0 )
+
<td></td>
-
{
+
<td></td>
-
  tableRef.deleteRow(0);
+
<td></td>
-
}
+
<td></td>
-
}
+
<td></td>
 +
</tr>
-
function addheader()
+
<tr>
-
{
+
<td>Average length of service (months)</td>
-
var x=document.getElementById('OutputTable').insertRow(0);
+
<td><input type="text" name="L" value="" /></td>
-
var c0=x.insertCell(0);
+
<td></td>
-
var c1=x.insertCell(1);
+
<td></td>
-
var c2=x.insertCell(2);
+
<td></td>
-
var c3=x.insertCell(3);
+
<td></td>
-
c0.innerHTML=" ";
+
<td></td>
-
c1.innerHTML="<b>Country</b>";
+
</tr>
-
c2.innerHTML="<b>Number of vols</b>";
+
-
c3.innerHTML="<b>Percentage</b>";
+
-
}
+
-
function deleteRow(r)
+
</table>
-
{
+
<br><br>
-
var i=r.parentNode.parentNode.rowIndex;
+
<center><input type="button" name="calc" value="Calculate" onclick=calcForm()>
-
document.getElementById('OutputTable').deleteRow(i);
+
<input type="button" value="Clear" onClick="this.form.reset()" /> </center>
-
//Now recalculate percentages
+
</form>
-
//Number of rows (new)
+
-
var oRows = document.getElementById('OutputTable').getElementsByTagName('tr');
+
-
var iRowCount = oRows.length;
+
-
//Initialize
+
-
var sum=0;
+
-
var numvol=0;
+
-
//Find new sum
+
-
for (i=1;i<=iRowCount-2;i++)
+
-
{
+
-
var x=document.getElementById('OutputTable').rows[i].cells;
+
-
numvol=x[2].innerHTML;
+
-
sum=parseInt(sum)+parseInt(numvol);
+
-
}
+
-
//Assign new sum
+
-
var x=document.getElementById('OutputTable').rows[iRowCount-1].cells;
+
-
x[2].innerHTML='<b>'+sum+'</b>';
+
-
//Assign new percentages
+
-
for (i=1;i<=iRowCount-2;i++)
+
-
{
+
-
var x=document.getElementById('OutputTable').rows[i].cells;
+
-
numvol=x[2].innerHTML;
+
-
x[3].innerHTML=Math.round(100*numvol/sum);
+
-
}
+
-
}
+
-
 
+
<br>
-
</script>
+
<b>Definitions:</b><br>
-
 
+
<br>
-
 
+
<table border="1" width=100%>
-
 
+
-
 
+
-
 
+
-
<center>
+
-
<form name="arrayForm">
+
-
<table border="0">
+
<tr>
<tr>
-
<td>
+
<td WIDTH="200"><b>Entered Service</b></td>
-
  <p><b>World Region:</b><br>
+
<td>Number of volunteers who entered service within the past year</td>
-
  <select name="RegionSelect" onChange="myResult.value=''" size="1">
+
</tr>
-
    <option value="0" selected>ALL (Worldwide)</option>
+
<tr>
-
    <option value="1">Africa</option>
+
<td><b>Finished Service (COS)</b></td>
-
    <option value="2">Asia</option>
+
<td>Number of volunteers who successfully completed a full service (COS) within the past year</td>
-
    <option value="3">Caribbean</option>
+
</tr>
-
    <option value="4">Central America and Mexico</option>
+
<tr>
-
    <option value="5">Eastern Europe and Central Asia</option>
+
<td><b>Early Terminated (ET)</b></td>
-
    <option value="6">North Africa and the Middle East</option>
+
<td>Number of volunteers who early terminated their service within the past year. <i><small>[FY2009 Actual value: 1,155 (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i></td>
-
    <option value="7">Pacific Islands</option>
+
</tr>
-
    <option value="8">South America</option>
+
<tr>
-
  </select> <br>
+
<td><b>Currently Serving</b></td>
-
</td>
+
<td>The average number of currently serving volunteers and trainees at any moment in time. <i><small>[26May2010 Actual value: 7,340 (<a href="http://peacecorpswiki.org/images/PCVStats26May2010.pdf">Ref.</a>)]</small></i></td>
-
<td>
+
</tr>
-
  <p><b>Job Sector:</b><br>
+
<tr>
-
  <select name="SectorSelect" onChange="myResult.value=''" size="1">
+
<td><b>TOTAL served any part of year</b></td>
-
    <option value="0" selected>ANY (All sectors)</option>
+
<td>The number of volunteers and trainees that served any portion of the year under study <i><small>[FY2009 Actual Value: 11,549 (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i></td>
-
    <option value="1">Agriculture </option>
+
</tr>
-
    <option value="2">Business Development</option>
+
<tr>
-
    <option value="3">Education</option>
+
<td><b>Cohort Method</b></td>
-
    <option value="4">Environment</option>
+
<td><i>("Out of 100")</i> Equivalent to the probability of a randomly selected volunteer Early Terminating sometime within their service.</td>
-
    <option value="5">Health & HIV/AIDS</option>
+
</tr>
-
    <option value="6">Other</option>
+
<tr>
-
    <option value="7">Youth</option>
+
<td><b>Annual Method</b></td>
-
  </select> <br>
+
<td><i>(current method used by Peace Corps)</i> The number of PCVs/Ts who separated from the Peace Corps during the fiscal year divided by the total number of trainees and volunteers who served at any time during the fiscal year. (<a href="http://peacecorpswiki.org/Early_Termination">Ref.</a>)<i><small>
-
</td>
+
[FY2009 Actual Value: 10.0% (<a href="http://peacecorpswiki.org/images/FY2009ETdatasummary.pdf">Ref.</a>)]</small></i></td>
-
<td>
+
</tr>
-
<br>
+
<tr>
-
  <input type="button" value="go" onClick="getArray(document.arrayForm.SectorSelect.value,document.arrayForm.RegionSelect.value);"><br>
+
<td><b>Volunteer-Year Method<br><i>(as decimal)</i></b></td>
-
</td>
+
<td>The number of ET's by an average volunteer during one year of service. Since most volunteers successfully complete their service, which is longer than one year, this number would be a "fraction of an ET". If the V-Year ET Rate was 0.20 (per year) we would expect about 2 volunteers out of 10 to ET per year, or about 1 volunteer out of 10 in a six-month period. (<a href="http://peacecorpswiki.org/Early_Termination">Ref.</a>)</td>
 +
</tr>
 +
<tr>
 +
<td><b>Average length of service<br><i>(months)</i></b></td>
 +
<td>Average length of service among all volunteers (in months)</td>
</tr>
</tr>
</table>
</table>
-
</form>
+
<br>
 +
Note: [TOTAL served any part of year] = [Finished Service (COS)] + [Early Terminated (ET)] + [Currently Serving]<br>
 +
The volunteers who [Entered Service] are already counted in one of three categories as during that year they have either COSed, ETed, or are still currently serving.
 +
<br>
 +
<br>
 +
<i>The above probabilistic model of Peace Corps was developed by Michael Sheppard (RPCV / The Gambia), and it should be taken as an estimate only</i>
-
  <table id="OutputTable" border="1">
 
-
  </table>
 
-
 
-
</center>
 
Line 162: Line 195:
<script language="JavaScript">
<script language="JavaScript">
-
function getArray(sector,reg)
 
-
{
 
-
var i=0;
 
-
var sum=0;
 
-
var tempsum=0;
 
-
country=new Array(1)  //at least one element
 
-
numvol=new Array(1)  //at least one element
 
-
var ind=0;
 
-
//Go through all countries within region
 
-
for (i=0;i<=Regions[reg].length-1;i++)
 
-
{
 
-
tempsum=0;
 
-
//For each country sum across all susectors defined by choice
 
-
for (j=0;j<=Subsect[sector].length-1;j++)
 
-
{
 
-
tempsum=tempsum+PeaceCorps[Regions[reg][i]][Subsect[sector][j]];
 
-
}
 
-
if (tempsum>0)
 
-
{
 
-
country[ind]=PeaceCorps[Regions[reg][i]][0];
 
-
numvol[ind]=tempsum;
 
-
sum=sum+tempsum;
 
-
ind=ind+1;
 
-
}
 
-
}
 
-
//Bubble Sort! (quick, and lists are only 70+ at most)
+
function calcForm() {
-
//
+
  var elements = document.model.elements;
-
var start=0;
+
-
var rest=numvol.length - 1;
+
-
for (var i = rest - 1; i >= start;  i--)
+
-
{
+
-
for (var j = start; j <= i; j++)
+
-
{
+
-
if (numvol[j+1] < numvol[j])
+
-
{
+
-
var temp1=numvol[j];
+
-
var temp2=country[j];
+
-
numvol[j]=numvol[j+1];
+
-
country[j]=country[j+1];
+
-
numvol[j+1]=temp1;
+
-
country[j+1]=temp2;
+
-
}
+
-
}
+
-
}
+
-
//document.write(Regions[3])
+
-
//Clear the Table and add header column
+
-
clearTable()
+
-
//Add Header Row
+
-
addheader()
+
-
//Add Bottom row
+
-
var x=document.getElementById('OutputTable').insertRow(1);
+
-
var c0=x.insertCell(0);
+
-
var c1=x.insertCell(1);
+
-
var c2=x.insertCell(2);
+
-
var c3=x.insertCell(3);
+
-
c1.innerHTML=" ";
+
-
c1.innerHTML="<b>TOTAL</b>";
+
-
c2.innerHTML="<b>"+sum+"</b>";
+
-
c3.innerHTML="<b>100</b>";
+
-
//
+
-
//Now loop through each one, in order of decreasing numvol
+
-
//Note: The table is built from bottom-up
+
-
for (i=0;i<=country.length-1;i++)
+
-
{
+
-
var x=document.getElementById('OutputTable').insertRow(1);
+
-
var c0=x.insertCell(0);
+
-
var c1=x.insertCell(1);
+
-
var c2=x.insertCell(2);
+
-
var c3=x.insertCell(3);
+
-
c0.innerHTML='<input type="radio" value="Delete" onclick="deleteRow(this)">'
+
-
c1.innerHTML='<a href="http://www.peacecorpswiki.org/'+country[i]+'" target="_blank">'+country[i]+'</a>' ;
+
-
c2.innerHTML=numvol[i];
+
-
c3.innerHTML=Math.round(100*numvol[i]/sum);
+
-
}
+
-
var x=document.getElementById('ExampleTable').insertRow(0);
+
  //Convert rates to decimals
-
var c0=x.insertCell(0);
+
  if (elements[5].value!="") {
-
var c1=x.insertCell(1);
+
  elements[5].value=1.0*elements[5].value/100;
-
var c2=x.insertCell(2);
+
  }
-
var c3=x.insertCell(3);
+
  if (elements[6].value!="") {
-
c0.innerHTML=" ";
+
  elements[6].value=1.0*elements[6].value/100;
-
c1.innerHTML="<b>Country</b>";
+
  }
-
c2.innerHTML="<b>Number of vols</b>";
+
  // v is decimal, by definition; while p and a are percentages
-
c3.innerHTML="<b>Percentage</b>";
+
-
}
 
-
function clearTable()
+
  //Compute all variables possible by continuously looping through the formulas
-
{
+
  var ind=1;
-
var tableRef = document.getElementById('OutputTable');
+
  while (ind==1) {
-
while ( tableRef.rows.length > 0 )
+
   //Initialize to zero, and set equal to one if any new variables are computed
-
{
+
  ind=0;
-
   tableRef.deleteRow(0);
+
-
}
+
-
}
+
-
function addheader()
+
  //Order of priority, first solve for a,p,v if known
-
{
+
 
-
var x=document.getElementById('OutputTable').insertRow(0);
+
  //Equation : 26a=9ap+8p  (a 6, p 5)
-
var c0=x.insertCell(0);
+
  //Unknown  : a (6)
-
var c1=x.insertCell(1);
+
  if (elements[6].value=="" && elements[5].value!="") {
-
var c2=x.insertCell(2);
+
  document.model.elements[6].value = (8.0*elements[5].value) / (26.0 - (9.0*elements[5].value));
-
var c3=x.insertCell(3);
+
  ind=1;
-
c0.innerHTML=" ";
+
  }
-
c1.innerHTML="<b>Country</b>";
+
  //Equation : 26a=9ap+8p  (a 6, p 5)
-
c2.innerHTML="<b>Number of vols</b>";
+
  //Unknown  : p (5)
-
c3.innerHTML="<b>Percentage</b>";
+
  if (elements[6].value!="" && elements[5].value=="") {
-
}
+
  document.model.elements[5].value = (26.0*elements[6].value) / (8.0 + (9.0*elements[6].value));
 +
  ind=1;
 +
  }
 +
  //Equation : 18v=9av+26a (a 6 , v 7)
 +
  //Unknown  : a (6)
 +
  if (elements[6].value=="" && elements[7].value!="") {
 +
  document.model.elements[6].value = (18.0*elements[7].value) / (26.0 + (9.0*elements[7].value));
 +
  ind=1;
 +
  }
 +
  //Equation : 18v=9av+26a (a 6 , v 7)
 +
  //Unknown  : v (7)
 +
  if (elements[6].value!="" && elements[7].value=="") {
 +
  document.model.elements[7].value = (26.0*elements[6].value) / (18.0 - (9.0*elements[6].value));
 +
  ind=1;
 +
  }
 +
  //Equation : 18v=9pv+8p (v 7, p 5)
 +
  //Unknown  : v (7)
 +
  if (elements[5].value!="" && elements[7].value=="") {
 +
  document.model.elements[7].value = (8.0*elements[5].value) / (18.0 - (9.0*elements[5].value));
 +
  ind=1;
 +
  }
 +
  //Equation : 18v=9pv+8p (v 7, p 5)
 +
  //Unknown  : p (5)
 +
  if (elements[5].value=="" && elements[7].value!="") {
 +
  document.model.elements[5].value = (18.0*elements[7].value) / (8.0 - (9.0*elements[7].value));
 +
  ind=1;
 +
  }
-
function deleteRow(r)
+
  //IF P=0 (OR EQUIVALENT) LOOP THROUGH NON-DIVISION ESTIMATION
-
{
+
  if (elements[5].value!="" && 1.0*elements[5].value==0) {
-
var i=r.parentNode.parentNode.rowIndex;
+
  //If exist and is zero
-
document.getElementById('OutputTable').deleteRow(i);
+
  document.model.elements[2].value = 0;
-
//Now recalculate percentages
+
  var ind2=1;
-
//Number of rows (new)
+
  while (ind2==1) {
-
var oRows = document.getElementById('OutputTable').getElementsByTagName('tr');
+
  //Initialize to zero, and set equal to one if any new variables are computed
-
var iRowCount = oRows.length;
+
  ind2=0;
-
//Initialize
+
  if (elements[3].value=="" && elements[4].value!="") {
-
var sum=0;
+
    document.model.elements[3].value = 18.0*elements[4].value / 26;
-
var numvol=0;
+
    ind2=1;
-
//Find new sum
+
  }
-
for (i=1;i<=iRowCount-2;i++)
+
  if (elements[3].value!="" && elements[4].value=="") {
-
{
+
    document.model.elements[4].value = 26.0*elements[3].value / 18;
-
var x=document.getElementById('OutputTable').rows[i].cells;
+
    ind2=1;
-
numvol=x[2].innerHTML;
+
  }
-
sum=parseInt(sum)+parseInt(numvol);
+
  if (elements[0].value=="" && elements[4].value!="") {
-
}
+
    document.model.elements[0].value = 8.0*elements[4].value / 26;
-
//Assign new sum
+
    ind2=1;
-
var x=document.getElementById('OutputTable').rows[iRowCount-1].cells;
+
  }
-
x[2].innerHTML='<b>'+sum+'</b>';
+
  if (elements[0].value!="" && elements[4].value=="") {
-
//Assign new percentages
+
    document.model.elements[4].value = 26.0*elements[0].value / 8;
-
for (i=1;i<=iRowCount-2;i++)
+
    ind2=1;
-
{
+
  }
-
var x=document.getElementById('OutputTable').rows[i].cells;
+
  if (elements[0].value=="" && elements[3].value!="") {
-
numvol=x[2].innerHTML;
+
    document.model.elements[0].value =  8.0*elements[3].value / 18;
-
x[3].innerHTML=Math.round(100*numvol/sum);
+
    ind2=1;
-
}
+
  }
-
}
+
  if (elements[0].value!="" && elements[3].value=="") {
 +
    document.model.elements[3].value = 18.0*elements[0].value / 8;
 +
    ind2=1;
 +
  }
 +
  if (elements[0].value=="" && elements[1].value!="") {
 +
    document.model.elements[0].value = elements[1].value;
 +
    ind2=1;
 +
  }
 +
  if (elements[0].value!="" && elements[1].value=="") {
 +
    document.model.elements[1].value = elements[0].value;
 +
    ind2=1;
 +
  }
 +
  } //While
 +
  } //If for zero
-
//Create Array of Subsectors
 
-
//Although may seem redundant, this is easily expandable if Sectors and Subsectors were used together
 
-
//If Subsect[1]=[1 2 3] means the 1st choice selected by 'sector' above is columns 1,2,3 in data below
 
-
//Helps when combining Subsectors together if a sector is given.
 
-
var Subsect = new Array();
 
-
Subsect[0] = new Array(7); //All
 
-
Subsect[0] = [1,2,3,4,5,6,7];
 
-
Subsect[1] = new Array(1);
 
-
Subsect[1] = [1];
 
-
Subsect[2] = new Array(1);
 
-
Subsect[2] = [2];
 
-
Subsect[3] = new Array(1);
 
-
Subsect[3] = [3];
 
-
Subsect[4] = new Array(1);
 
-
Subsect[4] = [4];
 
-
Subsect[5] = new Array(1);
 
-
Subsect[5] = [5];
 
-
Subsect[6] = new Array(1);
 
-
Subsect[6] = [6];
 
-
Subsect[7] = new Array(1);
 
-
Subsect[7] = [7];
 
 +
  //Equation : a*n=e (6,4,2)
 +
  //Unknown  : a (6)
 +
  if (elements[6].value=="" && elements[4].value!="" && elements[2].value!="") {
 +
  document.model.elements[6].value = (1.0*elements[2].value) / (1.0*elements[4].value);
 +
  ind=1;
 +
  }
 +
  //Equation : a*n=e (6,4,2)
 +
  //Unknown  : n (4)
 +
  if (elements[6].value!="" && elements[4].value=="" && elements[2].value!="") {
 +
  document.model.elements[4].value = (1.0*elements[2].value) / (1.0*elements[6].value);
 +
  ind=1;
 +
  }
 +
  //Equation : a*n=e (6,4,2)
 +
  //Unknown  : e (2)
 +
  if (elements[6].value!="" && elements[4].value!="" && elements[2].value=="") {
 +
  document.model.elements[2].value = (1.0*elements[6].value) * (1.0*elements[4].value);
 +
  ind=1;
 +
  }
 +
  //Equation : r*p=e (0,5,2)
 +
  //Unknown  : r (0)
 +
  if (elements[0].value=="" && elements[5].value!="" && elements[2].value!="") {
 +
  document.model.elements[0].value = (1.0*elements[2].value) / (1.0*elements[5].value);
 +
  ind=1;
 +
  }
 +
  //Equation : r*p=e (0,5,2)
 +
  //Unknown  : p (5)
 +
  if (elements[0].value!="" && elements[5].value=="" && elements[2].value!="") {
 +
  document.model.elements[5].value = (1.0*elements[2].value) / (1.0*elements[0].value);
 +
  ind=1;
 +
  }
 +
  //Equation : r*p=e (0,5,2)
 +
  //Unknown  : e (2)
 +
  if (elements[0].value!="" && elements[5].value!="" && elements[2].value=="") {
 +
  document.model.elements[2].value = (1.0*elements[0].value) * (1.0*elements[5].value);
 +
  ind=1;
 +
  }
 +
  //Equation : c*v=e (3,7,2)
 +
  //Unknown  : c (3)
 +
  if (elements[3].value=="" && elements[7].value!="" && elements[2].value!="") {
 +
  document.model.elements[3].value = (1.0*elements[2].value) / (1.0*elements[7].value);
 +
  ind=1;
 +
  }
 +
  //Equation : c*v=e (3,7,2)
 +
  //Unknown  : v (7)
 +
  if (elements[3].value!="" && elements[7].value=="" && elements[2].value!="") {
 +
  document.model.elements[7].value = (1.0*elements[2].value) / (1.0*elements[3].value);
 +
  ind=1;
 +
  }
 +
  //Equation : c*v=e (3,7,2)
 +
  //Unknown  : e (2)
 +
  if (elements[3].value!="" && elements[7].value!="" && elements[2].value=="") {
 +
  document.model.elements[2].value = (1.0*elements[3].value) * (1.0*elements[7].value);
 +
  ind=1;
 +
  }
 +
  //Equation : n=r+c (4,0,3)
 +
  //Unknown  : n (4)
 +
  if (elements[4].value=="" && elements[0].value!="" && elements[3].value!="") {
 +
  document.model.elements[4].value = (1.0*elements[0].value) + (1.0*elements[3].value);
 +
  ind=1;
 +
  }
 +
  //Equation : n=r+c (4,0,3)
 +
  //Unknown  : r (0)
 +
  if (elements[4].value!="" && elements[0].value=="" && elements[3].value!="") {
 +
  document.model.elements[0].value = (1.0*elements[4].value) - (1.0*elements[3].value);
 +
  ind=1;
 +
  }
 +
  //Equation : n=r+c (4,0,3)
 +
  //Unknown  : c (3)
 +
  if (elements[4].value!="" && elements[0].value!="" && elements[3].value=="") {
 +
  document.model.elements[3].value = (1.0*elements[4].value) - (1.0*elements[0].value);
 +
  ind=1;
 +
  }
 +
  //Equation : r=s+e (0,1,2)
 +
  //Unknown  : r (0)
 +
  if (elements[0].value=="" && elements[1].value!="" && elements[2].value!="") {
 +
  document.model.elements[0].value = (1.0*elements[1].value) + (1.0*elements[2].value);
 +
  ind=1;
 +
  }
 +
  //Equation : r=s+e (0,1,2)
 +
  //Unknown  : s (1)
 +
  if (elements[0].value!="" && elements[1].value=="" && elements[2].value!="") {
 +
  document.model.elements[1].value = (1.0*elements[0].value) - (1.0*elements[2].value);
 +
  ind=1;
 +
  }
 +
  //Equation : r=s+e (0,1,2)
 +
  //Unknown  : e (2)
 +
  if (elements[0].value!="" && elements[1].value!="" && elements[2].value=="") {
 +
  document.model.elements[2].value = (1.0*elements[0].value) - (1.0*elements[1].value);
 +
  ind=1;
 +
  }
 +
  //Equation : 2L+27p=54 (8,5)
 +
  //Unknown  : L (8)
 +
  if (elements[8].value=="" && elements[5].value!="") {
 +
  document.model.elements[8].value = (54.0 - (27.0*elements[5].value)) / 2.0;
 +
  ind=1;
 +
  }
 +
  //Equation : 2L+27p=54 (8,5)
 +
  //Unknown  : p (5)
 +
  if (elements[8].value!="" && elements[5].value=="") {
 +
  document.model.elements[5].value = (54.0 - (2.0*elements[8].value)) / 27.0;
 +
  ind=1;
 +
  }
 +
  //Equation : (1/a)=(1/p)+(1/v)  (6 5 7)
 +
  //Unknown  : a (6)
 +
  if (elements[6].value=="" && elements[5].value!="" && elements[7].value!="") {
 +
  document.model.elements[6].value = 1 / ((1/(1.0*elements[5].value)) + (1/(1.0*elements[7].value)));
 +
  ind=1;
 +
  }
 +
  //Equation : (1/a)=(1/p)+(1/v)  (6 5 7)
 +
  //Unknown  : p (5)
 +
  if (elements[6].value!="" && elements[5].value=="" && elements[7].value!="") {
 +
  document.model.elements[5].value = 1 / ((1/(1.0*elements[6].value)) - (1/(1.0*elements[7].value)));
 +
  ind=1;
 +
  }
 +
  //Equation : (1/a)=(1/p)+(1/v)  (6 5 7)
 +
  //Unknown  : v (7)
 +
  if (elements[6].value!="" && elements[5].value!="" && elements[7].value=="") {
 +
  document.model.elements[7].value = 1 / ((1/(1.0*elements[6].value)) - (1/(1.0*elements[5].value)));
 +
  ind=1;
 +
  }
 +
  //Equation : s=(1-p)*r (1 5 0)
 +
  //Unknown  : s (1)
 +
  if (elements[1].value=="" && elements[5].value!="" && elements[0].value!="") {
 +
  document.model.elements[1].value=(1-(1.0*elements[5].value))*(1.0*elements[0].value);
 +
  ind=1;
 +
  }
 +
  //Equation : s=(1-p)*r (1 5 0)
 +
  //Unknown  : p (5)
 +
  if (elements[1].value!="" && elements[5].value=="" && elements[0].value!="") {
 +
  document.model.elements[5]=1-((1.0*elements[1].value)/(1.0*elements[0].value));
 +
  ind=1;
 +
  }
 +
  //Equation : s=(1-p)*r (1 5 0)
 +
  //Unknown  : r (0)
 +
  if (elements[1].value!="" && elements[5].value!="" && elements[0].value=="") {
 +
  document.model.elements[0].value = (1.0*elements[1].value) / (1-(1.0*elements[5].value));
 +
  ind=1;
 +
  }
 +
  } // While loop
-
//Create Array of Regions
+
//Now that while loop is completed format all answers
-
//If Regions[1][3]=10 means the 10'th country in list belongs to the 1st Region (the 3 is just an index)
+
if (elements[0].value!="")   document.model.elements[0].value=Math.round(elements[0].value);
-
//
+
if (elements[1].value!="")   document.model.elements[1].value=Math.round(elements[1].value);
-
var Regions = new Array();
+
if (elements[2].value!="")   document.model.elements[2].value=Math.round(elements[2].value);  
-
Regions[0] = new Array(26); //All
+
if (elements[3].value!="")   document.model.elements[3].value=Math.round(elements[3].value);  
-
Regions[0] = [1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 55 , 56 , 57 , 58 , 59 , 60 , 61 , 62 , 63 , 64 , 65 , 66 , 67 , 68];
+
if (elements[4].value!="")   document.model.elements[4].value=Math.round(elements[4].value);  
-
Regions[1] = new Array(26); //Africa
+
if (elements[5].value!="")   document.model.elements[5].value=Math.round(1000*elements[5].value)/10;  
-
Regions[1]=[5 , 6 , 8 , 10 , 11 , 18 , 20 , 22 , 30 , 32 , 33 , 35 , 36 , 42 , 43 , 45 , 51 , 53 , 54 , 56 , 57 , 59 , 62 , 65 , 67 , 68];
+
if (elements[6].value!="")   document.model.elements[6].value=Math.round(1000*elements[6].value)/10;  
-
Regions[2] = new Array(6); //Asia
+
if (elements[7].value!="")  document.model.elements[7].value=Math.round(100*elements[7].value)/100;  
-
Regions[2] =[9 , 12 , 40 , 49 , 58 , 66];
+
if (elements[8].value!="")  document.model.elements[8].value=Math.round(10*elements[8].value)/10;
-
Regions[3] = new Array(3); //Caribbean
+
-
Regions[3] = [14 , 15 , 27];
+
-
Regions[4] = new Array(8); //Central America and Mexico
+
-
Regions[4] = [4 , 13 , 17 , 23 , 26 , 37 , 44 , 46];
+
-
Regions[5] = new Array(12); // Eastern Europe and Central Asia
+
-
Regions[5] = [1 , 2 , 3 , 7 , 21 , 29 , 31 , 34 , 39 , 50 , 61 , 63];
+
-
Regions[6] = new Array(2); // North Africa and the Middle East
+
-
Regions[6] = [28 , 41];
+
-
Regions[7] = new Array; // Pacific Islands
+
-
Regions[7] = [19 , 38 , 52 , 60 , 64];
+
-
Regions[8] = new Array; // South America
+
-
Regions[8] = [16 , 25 , 47 , 48 , 55];
+
 +
}
-
//Create 2-Dimensional Array of Volunteer Distribution
 
-
//Source:
 
-
//Peace Corps Website
 
-
//(website shortened): http://bit.ly/cMGOmP
 
-
var PeaceCorps = new Array();
 
-
PeaceCorps[0] = new Array(8);
 
-
PeaceCorps[0][0] = 'Post';
 
-
PeaceCorps[0][1] = 'Agriculture';
 
-
PeaceCorps[0][2] = 'Business Development';
 
-
PeaceCorps[0][3] = 'Education';
 
-
PeaceCorps[0][4] = 'Environment';
 
-
PeaceCorps[0][5] = 'Health & HIV/AIDS';
 
-
PeaceCorps[0][6] = 'Other';
 
-
PeaceCorps[0][7] = 'Youth';
 
-
PeaceCorps[1] = new Array(8);
 
-
PeaceCorps[1][0] = 'Albania';
 
-
PeaceCorps[1][1] = 0;
 
-
PeaceCorps[1][2] = 23;
 
-
PeaceCorps[1][3] = 27;
 
-
PeaceCorps[1][4] = 0;
 
-
PeaceCorps[1][5] = 22;
 
-
PeaceCorps[1][6] = 0;
 
-
PeaceCorps[1][7] = 0;
 
-
PeaceCorps[2] = new Array(8);
+
</script>
-
PeaceCorps[2][0] = 'Armenia';
+
-
PeaceCorps[2][1] = 0;
+
-
PeaceCorps[2][2] = 20;
+
-
PeaceCorps[2][3] = 20;
+
-
PeaceCorps[2][4] = 21;
+
-
PeaceCorps[2][5] = 18;
+
-
PeaceCorps[2][6] = 0;
+
-
PeaceCorps[2][7] = 0;
+
-
PeaceCorps[3] = new Array(8);
 
-
PeaceCorps[3][0] = 'Azerbaijan';
 
-
PeaceCorps[3][1] = 0;
 
-
PeaceCorps[3][2] = 32;
 
-
PeaceCorps[3][3] = 51;
 
-
PeaceCorps[3][4] = 0;
 
-
PeaceCorps[3][5] = 0;
 
-
PeaceCorps[3][6] = 0;
 
-
PeaceCorps[3][7] = 35;
 
-
PeaceCorps[4] = new Array(8);
+
</body></html>
-
PeaceCorps[4][0] = 'Belize';
+
-
PeaceCorps[4][1] = 0;
+
-
PeaceCorps[4][2] = 0;
+
-
PeaceCorps[4][3] = 46;
+
-
PeaceCorps[4][4] = 2;
+
-
PeaceCorps[4][5] = 18;
+
-
PeaceCorps[4][6] = 0;
+
-
PeaceCorps[4][7] = 9;
+
-
PeaceCorps[5] = new Array(8);
 
-
PeaceCorps[5][0] = 'Benin';
 
-
PeaceCorps[5][1] = 0;
 
-
PeaceCorps[5][2] = 24;
 
-
PeaceCorps[5][3] = 30;
 
-
PeaceCorps[5][4] = 27;
 
-
PeaceCorps[5][5] = 25;
 
-
PeaceCorps[5][6] = 1;
 
-
PeaceCorps[5][7] = 0;
 
-
 
-
PeaceCorps[6] = new Array(8);
 
-
PeaceCorps[6][0] = 'Botswana';
 
-
PeaceCorps[6][1] = 0;
 
-
PeaceCorps[6][2] = 0;
 
-
PeaceCorps[6][3] = 0;
 
-
PeaceCorps[6][4] = 0;
 
-
PeaceCorps[6][5] = 112;
 
-
PeaceCorps[6][6] = 0;
 
-
PeaceCorps[6][7] = 0;
 
-
 
-
PeaceCorps[7] = new Array(8);
 
-
PeaceCorps[7][0] = 'Bulgaria';
 
-
PeaceCorps[7][1] = 0;
 
-
PeaceCorps[7][2] = 43;
 
-
PeaceCorps[7][3] = 64;
 
-
PeaceCorps[7][4] = 0;
 
-
PeaceCorps[7][5] = 0;
 
-
PeaceCorps[7][6] = 0;
 
-
PeaceCorps[7][7] = 42;
 
-
 
-
PeaceCorps[8] = new Array(8);
 
-
PeaceCorps[8][0] = 'Burkina Faso';
 
-
PeaceCorps[8][1] = 0;
 
-
PeaceCorps[8][2] = 23;
 
-
PeaceCorps[8][3] = 61;
 
-
PeaceCorps[8][4] = 0;
 
-
PeaceCorps[8][5] = 35;
 
-
PeaceCorps[8][6] = 0;
 
-
PeaceCorps[8][7] = 0;
 
-
 
-
PeaceCorps[9] = new Array(8);
 
-
PeaceCorps[9][0] = 'Cambodia';
 
-
PeaceCorps[9][1] = 0;
 
-
PeaceCorps[9][2] = 0;
 
-
PeaceCorps[9][3] = 65;
 
-
PeaceCorps[9][4] = 0;
 
-
PeaceCorps[9][5] = 7;
 
-
PeaceCorps[9][6] = 0;
 
-
PeaceCorps[9][7] = 0;
 
-
 
-
PeaceCorps[10] = new Array(8);
 
-
PeaceCorps[10][0] = 'Cameroon';
 
-
PeaceCorps[10][1] = 0;
 
-
PeaceCorps[10][2] = 28;
 
-
PeaceCorps[10][3] = 37;
 
-
PeaceCorps[10][4] = 50;
 
-
PeaceCorps[10][5] = 43;
 
-
PeaceCorps[10][6] = 0;
 
-
PeaceCorps[10][7] = 0;
 
-
 
-
PeaceCorps[11] = new Array(8);
 
-
PeaceCorps[11][0] = 'Cape Verde';
 
-
PeaceCorps[11][1] = 0;
 
-
PeaceCorps[11][2] = 19;
 
-
PeaceCorps[11][3] = 29;
 
-
PeaceCorps[11][4] = 9;
 
-
PeaceCorps[11][5] = 0;
 
-
PeaceCorps[11][6] = 0;
 
-
PeaceCorps[11][7] = 3;
 
-
 
-
PeaceCorps[12] = new Array(8);
 
-
PeaceCorps[12][0] = 'China';
 
-
PeaceCorps[12][1] = 0;
 
-
PeaceCorps[12][2] = 0;
 
-
PeaceCorps[12][3] = 110;
 
-
PeaceCorps[12][4] = 0;
 
-
PeaceCorps[12][5] = 0;
 
-
PeaceCorps[12][6] = 0;
 
-
PeaceCorps[12][7] = 0;
 
-
 
-
PeaceCorps[13] = new Array(8);
 
-
PeaceCorps[13][0] = 'Costa Rica';
 
-
PeaceCorps[13][1] = 0;
 
-
PeaceCorps[13][2] = 52;
 
-
PeaceCorps[13][3] = 17;
 
-
PeaceCorps[13][4] = 0;
 
-
PeaceCorps[13][5] = 0;
 
-
PeaceCorps[13][6] = 0;
 
-
PeaceCorps[13][7] = 37;
 
-
 
-
PeaceCorps[14] = new Array(8);
 
-
PeaceCorps[14][0] = 'Dominican Republic';
 
-
PeaceCorps[14][1] = 0;
 
-
PeaceCorps[14][2] = 46;
 
-
PeaceCorps[14][3] = 34;
 
-
PeaceCorps[14][4] = 33;
 
-
PeaceCorps[14][5] = 43;
 
-
PeaceCorps[14][6] = 1;
 
-
PeaceCorps[14][7] = 42;
 
-
 
-
PeaceCorps[15] = new Array(8);
 
-
PeaceCorps[15][0] = 'Eastern Caribbean';
 
-
PeaceCorps[15][1] = 0;
 
-
PeaceCorps[15][2] = 0;
 
-
PeaceCorps[15][3] = 12;
 
-
PeaceCorps[15][4] = 0;
 
-
PeaceCorps[15][5] = 0;
 
-
PeaceCorps[15][6] = 1;
 
-
PeaceCorps[15][7] = 60;
 
-
 
-
PeaceCorps[16] = new Array(8);
 
-
PeaceCorps[16][0] = 'Ecuador';
 
-
PeaceCorps[16][1] = 37;
 
-
PeaceCorps[16][2] = 2;
 
-
PeaceCorps[16][3] = 0;
 
-
PeaceCorps[16][4] = 37;
 
-
PeaceCorps[16][5] = 39;
 
-
PeaceCorps[16][6] = 37;
 
-
PeaceCorps[16][7] = 0;
 
-
 
-
PeaceCorps[17] = new Array(8);
 
-
PeaceCorps[17][0] = 'El Salvador';
 
-
PeaceCorps[17][1] = 0;
 
-
PeaceCorps[17][2] = 34;
 
-
PeaceCorps[17][3] = 0;
 
-
PeaceCorps[17][4] = 45;
 
-
PeaceCorps[17][5] = 33;
 
-
PeaceCorps[17][6] = 1;
 
-
PeaceCorps[17][7] = 29;
 
-
 
-
PeaceCorps[18] = new Array(8);
 
-
PeaceCorps[18][0] = 'Ethiopia';
 
-
PeaceCorps[18][1] = 0;
 
-
PeaceCorps[18][2] = 0;
 
-
PeaceCorps[18][3] = 0;
 
-
PeaceCorps[18][4] = 0;
 
-
PeaceCorps[18][5] = 52;
 
-
PeaceCorps[18][6] = 0;
 
-
PeaceCorps[18][7] = 0;
 
-
 
-
PeaceCorps[19] = new Array(8);
 
-
PeaceCorps[19][0] = 'Fiji';
 
-
PeaceCorps[19][1] = 0;
 
-
PeaceCorps[19][2] = 0;
 
-
PeaceCorps[19][3] = 0;
 
-
PeaceCorps[19][4] = 36;
 
-
PeaceCorps[19][5] = 26;
 
-
PeaceCorps[19][6] = 0;
 
-
PeaceCorps[19][7] = 0;
 
-
 
-
PeaceCorps[20] = new Array(8);
 
-
PeaceCorps[20][0] = 'Gambia';
 
-
PeaceCorps[20][1] = 0;
 
-
PeaceCorps[20][2] = 0;
 
-
PeaceCorps[20][3] = 26;
 
-
PeaceCorps[20][4] = 28;
 
-
PeaceCorps[20][5] = 28;
 
-
PeaceCorps[20][6] = 0;
 
-
PeaceCorps[20][7] = 0;
 
-
 
-
PeaceCorps[21] = new Array(8);
 
-
PeaceCorps[21][0] = 'Georgia';
 
-
PeaceCorps[21][1] = 0;
 
-
PeaceCorps[21][2] = 10;
 
-
PeaceCorps[21][3] = 18;
 
-
PeaceCorps[21][4] = 0;
 
-
PeaceCorps[21][5] = 0;
 
-
PeaceCorps[21][6] = 0;
 
-
PeaceCorps[21][7] = 0;
 
-
 
-
PeaceCorps[22] = new Array(8);
 
-
PeaceCorps[22][0] = 'Ghana';
 
-
PeaceCorps[22][1] = 0;
 
-
PeaceCorps[22][2] = 37;
 
-
PeaceCorps[22][3] = 58;
 
-
PeaceCorps[22][4] = 36;
 
-
PeaceCorps[22][5] = 37;
 
-
PeaceCorps[22][6] = 0;
 
-
PeaceCorps[22][7] = 0;
 
-
 
-
PeaceCorps[23] = new Array(8);
 
-
PeaceCorps[23][0] = 'Guatemala';
 
-
PeaceCorps[23][1] = 45;
 
-
PeaceCorps[23][2] = 42;
 
-
PeaceCorps[23][3] = 0;
 
-
PeaceCorps[23][4] = 30;
 
-
PeaceCorps[23][5] = 58;
 
-
PeaceCorps[23][6] = 3;
 
-
PeaceCorps[23][7] = 31;
 
-
 
-
//Delete Guinea
 
-
PeaceCorps[24] = new Array(8);
 
-
PeaceCorps[24][0] = 'Guinea';
 
-
PeaceCorps[24][1] = 0;
 
-
PeaceCorps[24][2] = 0;
 
-
PeaceCorps[24][3] = 0;
 
-
PeaceCorps[24][4] = 0;
 
-
PeaceCorps[24][5] = 0;
 
-
PeaceCorps[24][6] = 0;
 
-
PeaceCorps[24][7] = 0;
 
-
 
-
PeaceCorps[25] = new Array(8);
 
-
PeaceCorps[25][0] = 'Guyana';
 
-
PeaceCorps[25][1] = 0;
 
-
PeaceCorps[25][2] = 0;
 
-
PeaceCorps[25][3] = 32;
 
-
PeaceCorps[25][4] = 0;
 
-
PeaceCorps[25][5] = 27;
 
-
PeaceCorps[25][6] = 2;
 
-
PeaceCorps[25][7] = 0;
 
-
 
-
PeaceCorps[26] = new Array(8);
 
-
PeaceCorps[26][0] = 'Honduras';
 
-
PeaceCorps[26][1] = 36;
 
-
PeaceCorps[26][2] = 23;
 
-
PeaceCorps[26][3] = 1;
 
-
PeaceCorps[26][4] = 0;
 
-
PeaceCorps[26][5] = 56;
 
-
PeaceCorps[26][6] = 30;
 
-
PeaceCorps[26][7] = 32;
 
-
 
-
PeaceCorps[27] = new Array(8);
 
-
PeaceCorps[27][0] = 'Jamaica';
 
-
PeaceCorps[27][1] = 0;
 
-
PeaceCorps[27][2] = 0;
 
-
PeaceCorps[27][3] = 20;
 
-
PeaceCorps[27][4] = 22;
 
-
PeaceCorps[27][5] = 30;
 
-
PeaceCorps[27][6] = 0;
 
-
PeaceCorps[27][7] = 0;
 
-
 
-
PeaceCorps[28] = new Array(8);
 
-
PeaceCorps[28][0] = 'Jordan';
 
-
PeaceCorps[28][1] = 0;
 
-
PeaceCorps[28][2] = 0;
 
-
PeaceCorps[28][3] = 23;
 
-
PeaceCorps[28][4] = 0;
 
-
PeaceCorps[28][5] = 7;
 
-
PeaceCorps[28][6] = 0;
 
-
PeaceCorps[28][7] = 0;
 
-
 
-
PeaceCorps[29] = new Array(8);
 
-
PeaceCorps[29][0] = 'Kazakhstan';
 
-
PeaceCorps[29][1] = 0;
 
-
PeaceCorps[29][2] = 23;
 
-
PeaceCorps[29][3] = 111;
 
-
PeaceCorps[29][4] = 31;
 
-
PeaceCorps[29][5] = 0;
 
-
PeaceCorps[29][6] = 0;
 
-
PeaceCorps[29][7] = 0;
 
-
 
-
PeaceCorps[30] = new Array(8);
 
-
PeaceCorps[30][0] = 'Kenya';
 
-
PeaceCorps[30][1] = 0;
 
-
PeaceCorps[30][2] = 20;
 
-
PeaceCorps[30][3] = 22;
 
-
PeaceCorps[30][4] = 0;
 
-
PeaceCorps[30][5] = 26;
 
-
PeaceCorps[30][6] = 0;
 
-
PeaceCorps[30][7] = 0;
 
-
 
-
PeaceCorps[31] = new Array(8);
 
-
PeaceCorps[31][0] = 'Kyrgyzstan';
 
-
PeaceCorps[31][1] = 0;
 
-
PeaceCorps[31][2] = 20;
 
-
PeaceCorps[31][3] = 61;
 
-
PeaceCorps[31][4] = 0;
 
-
PeaceCorps[31][5] = 17;
 
-
PeaceCorps[31][6] = 0;
 
-
PeaceCorps[31][7] = 0;
 
-
 
-
PeaceCorps[32] = new Array(8);
 
-
PeaceCorps[32][0] = 'Lesotho';
 
-
PeaceCorps[32][1] = 0;
 
-
PeaceCorps[32][2] = 15;
 
-
PeaceCorps[32][3] = 43;
 
-
PeaceCorps[32][4] = 0;
 
-
PeaceCorps[32][5] = 23;
 
-
PeaceCorps[32][6] = 0;
 
-
PeaceCorps[32][7] = 0;
 
-
 
-
PeaceCorps[33] = new Array(8);
 
-
PeaceCorps[33][0] = 'Liberia';
 
-
PeaceCorps[33][1] = 0;
 
-
PeaceCorps[33][2] = 0;
 
-
PeaceCorps[33][3] = 0;
 
-
PeaceCorps[33][4] = 0;
 
-
PeaceCorps[33][5] = 0;
 
-
PeaceCorps[33][6] = 19;
 
-
PeaceCorps[33][7] = 0;
 
-
 
-
PeaceCorps[34] = new Array(8);
 
-
PeaceCorps[34][0] = 'Macedonia';
 
-
PeaceCorps[34][1] = 0;
 
-
PeaceCorps[34][2] = 0;
 
-
PeaceCorps[34][3] = 52;
 
-
PeaceCorps[34][4] = 5;
 
-
PeaceCorps[34][5] = 0;
 
-
PeaceCorps[34][6] = 45;
 
-
PeaceCorps[34][7] = 0;
 
-
 
-
PeaceCorps[35] = new Array(8);
 
-
PeaceCorps[35][0] = 'Malawi';
 
-
PeaceCorps[35][1] = 0;
 
-
PeaceCorps[35][2] = 5;
 
-
PeaceCorps[35][3] = 58;
 
-
PeaceCorps[35][4] = 36;
 
-
PeaceCorps[35][5] = 39;
 
-
PeaceCorps[35][6] = 9;
 
-
PeaceCorps[35][7] = 0;
 
-
 
-
PeaceCorps[36] = new Array(8);
 
-
PeaceCorps[36][0] = 'Mali';
 
-
PeaceCorps[36][1] = 20;
 
-
PeaceCorps[36][2] = 31;
 
-
PeaceCorps[36][3] = 15;
 
-
PeaceCorps[36][4] = 18;
 
-
PeaceCorps[36][5] = 68;
 
-
PeaceCorps[36][6] = 0;
 
-
PeaceCorps[36][7] = 0;
 
-
 
-
PeaceCorps[37] = new Array(8);
 
-
PeaceCorps[37][0] = 'Mexico';
 
-
PeaceCorps[37][1] = 0;
 
-
PeaceCorps[37][2] = 24;
 
-
PeaceCorps[37][3] = 3;
 
-
PeaceCorps[37][4] = 27;
 
-
PeaceCorps[37][5] = 0;
 
-
PeaceCorps[37][6] = 0;
 
-
PeaceCorps[37][7] = 0;
 
-
 
-
PeaceCorps[38] = new Array(8);
 
-
PeaceCorps[38][0] = 'Micronesia';
 
-
PeaceCorps[38][1] = 0;
 
-
PeaceCorps[38][2] = 0;
 
-
PeaceCorps[38][3] = 72;
 
-
PeaceCorps[38][4] = 1;
 
-
PeaceCorps[38][5] = 0;
 
-
PeaceCorps[38][6] = 0;
 
-
PeaceCorps[38][7] = 0;
 
-
 
-
PeaceCorps[39] = new Array(8);
 
-
PeaceCorps[39][0] = 'Moldova';
 
-
PeaceCorps[39][1] = 32;
 
-
PeaceCorps[39][2] = 36;
 
-
PeaceCorps[39][3] = 33;
 
-
PeaceCorps[39][4] = 0;
 
-
PeaceCorps[39][5] = 25;
 
-
PeaceCorps[39][6] = 0;
 
-
PeaceCorps[39][7] = 0;
 
-
 
-
PeaceCorps[40] = new Array(8);
 
-
PeaceCorps[40][0] = 'Mongolia';
 
-
PeaceCorps[40][1] = 0;
 
-
PeaceCorps[40][2] = 14;
 
-
PeaceCorps[40][3] = 93;
 
-
PeaceCorps[40][4] = 0;
 
-
PeaceCorps[40][5] = 12;
 
-
PeaceCorps[40][6] = 0;
 
-
PeaceCorps[40][7] = 0;
 
-
 
-
PeaceCorps[41] = new Array(8);
 
-
PeaceCorps[41][0] = 'Morocco';
 
-
PeaceCorps[41][1] = 0;
 
-
PeaceCorps[41][2] = 76;
 
-
PeaceCorps[41][3] = 81;
 
-
PeaceCorps[41][4] = 45;
 
-
PeaceCorps[41][5] = 58;
 
-
PeaceCorps[41][6] = 0;
 
-
PeaceCorps[41][7] = 0;
 
-
 
-
PeaceCorps[42] = new Array(8);
 
-
PeaceCorps[42][0] = 'Mozambique';
 
-
PeaceCorps[42][1] = 0;
 
-
PeaceCorps[42][2] = 0;
 
-
PeaceCorps[42][3] = 119;
 
-
PeaceCorps[42][4] = 0;
 
-
PeaceCorps[42][5] = 61;
 
-
PeaceCorps[42][6] = 0;
 
-
PeaceCorps[42][7] = 0;
 
-
 
-
PeaceCorps[43] = new Array(8);
 
-
PeaceCorps[43][0] = 'Namibia';
 
-
PeaceCorps[43][1] = 0;
 
-
PeaceCorps[43][2] = 0;
 
-
PeaceCorps[43][3] = 114;
 
-
PeaceCorps[43][4] = 0;
 
-
PeaceCorps[43][5] = 20;
 
-
PeaceCorps[43][6] = 0;
 
-
PeaceCorps[43][7] = 0;
 
-
 
-
PeaceCorps[44] = new Array(8);
 
-
PeaceCorps[44][0] = 'Nicaragua';
 
-
PeaceCorps[44][1] = 53;
 
-
PeaceCorps[44][2] = 32;
 
-
PeaceCorps[44][3] = 36;
 
-
PeaceCorps[44][4] = 49;
 
-
PeaceCorps[44][5] = 34;
 
-
PeaceCorps[44][6] = 1;
 
-
PeaceCorps[44][7] = 0;
 
-
 
-
PeaceCorps[45] = new Array(8);
 
-
PeaceCorps[45][0] = 'Niger';
 
-
PeaceCorps[45][1] = 31;
 
-
PeaceCorps[45][2] = 26;
 
-
PeaceCorps[45][3] = 32;
 
-
PeaceCorps[45][4] = 25;
 
-
PeaceCorps[45][5] = 12;
 
-
PeaceCorps[45][6] = 0;
 
-
PeaceCorps[45][7] = 0;
 
-
 
-
PeaceCorps[46] = new Array(8);
 
-
PeaceCorps[46][0] = 'Panama';
 
-
PeaceCorps[46][1] = 33;
 
-
PeaceCorps[46][2] = 70;
 
-
PeaceCorps[46][3] = 0;
 
-
PeaceCorps[46][4] = 75;
 
-
PeaceCorps[46][5] = 0;
 
-
PeaceCorps[46][6] = 4;
 
-
PeaceCorps[46][7] = 0;
 
-
 
-
PeaceCorps[47] = new Array(8);
 
-
PeaceCorps[47][0] = 'Paraguay';
 
-
PeaceCorps[47][1] = 56;
 
-
PeaceCorps[47][2] = 39;
 
-
PeaceCorps[47][3] = 17;
 
-
PeaceCorps[47][4] = 56;
 
-
PeaceCorps[47][5] = 35;
 
-
PeaceCorps[47][6] = 18;
 
-
PeaceCorps[47][7] = 0;
 
-
 
-
PeaceCorps[48] = new Array(8);
 
-
PeaceCorps[48][0] = 'Peru';
 
-
PeaceCorps[48][1] = 0;
 
-
PeaceCorps[48][2] = 36;
 
-
PeaceCorps[48][3] = 0;
 
-
PeaceCorps[48][4] = 51;
 
-
PeaceCorps[48][5] = 81;
 
-
PeaceCorps[48][6] = 1;
 
-
PeaceCorps[48][7] = 38;
 
-
 
-
PeaceCorps[49] = new Array(8);
 
-
PeaceCorps[49][0] = 'Philippines';
 
-
PeaceCorps[49][1] = 0;
 
-
PeaceCorps[49][2] = 0;
 
-
PeaceCorps[49][3] = 65;
 
-
PeaceCorps[49][4] = 43;
 
-
PeaceCorps[49][5] = 0;
 
-
PeaceCorps[49][6] = 40;
 
-
PeaceCorps[49][7] = 0;
 
-
 
-
PeaceCorps[50] = new Array(8);
 
-
PeaceCorps[50][0] = 'Romania';
 
-
PeaceCorps[50][1] = 0;
 
-
PeaceCorps[50][2] = 9;
 
-
PeaceCorps[50][3] = 64;
 
-
PeaceCorps[50][4] = 18;
 
-
PeaceCorps[50][5] = 0;
 
-
PeaceCorps[50][6] = 18;
 
-
PeaceCorps[50][7] = 0;
 
-
 
-
PeaceCorps[51] = new Array(8);
 
-
PeaceCorps[51][0] = 'Rwanda';
 
-
PeaceCorps[51][1] = 0;
 
-
PeaceCorps[51][2] = 2;
 
-
PeaceCorps[51][3] = 8;
 
-
PeaceCorps[51][4] = 3;
 
-
PeaceCorps[51][5] = 30;
 
-
PeaceCorps[51][6] = 0;
 
-
PeaceCorps[51][7] = 0;
 
-
 
-
PeaceCorps[52] = new Array(8);
 
-
PeaceCorps[52][0] = 'Samoa';
 
-
PeaceCorps[52][1] = 0;
 
-
PeaceCorps[52][2] = 0;
 
-
PeaceCorps[52][3] = 25;
 
-
PeaceCorps[52][4] = 3;
 
-
PeaceCorps[52][5] = 0;
 
-
PeaceCorps[52][6] = 7;
 
-
PeaceCorps[52][7] = 0;
 
-
 
-
PeaceCorps[53] = new Array(8);
 
-
PeaceCorps[53][0] = 'Senegal';
 
-
PeaceCorps[53][1] = 35;
 
-
PeaceCorps[53][2] = 48;
 
-
PeaceCorps[53][3] = 0;
 
-
PeaceCorps[53][4] = 68;
 
-
PeaceCorps[53][5] = 26;
 
-
PeaceCorps[53][6] = 0;
 
-
PeaceCorps[53][7] = 0;
 
-
 
-
PeaceCorps[54] = new Array(8);
 
-
PeaceCorps[54][0] = 'South Africa';
 
-
PeaceCorps[54][1] = 0;
 
-
PeaceCorps[54][2] = 0;
 
-
PeaceCorps[54][3] = 70;
 
-
PeaceCorps[54][4] = 0;
 
-
PeaceCorps[54][5] = 53;
 
-
PeaceCorps[54][6] = 0;
 
-
PeaceCorps[54][7] = 0;
 
-
 
-
PeaceCorps[55] = new Array(8);
 
-
PeaceCorps[55][0] = 'Suriname';
 
-
PeaceCorps[55][1] = 0;
 
-
PeaceCorps[55][2] = 19;
 
-
PeaceCorps[55][3] = 0;
 
-
PeaceCorps[55][4] = 0;
 
-
PeaceCorps[55][5] = 21;
 
-
PeaceCorps[55][6] = 0;
 
-
PeaceCorps[55][7] = 0;
 
-
 
-
PeaceCorps[56] = new Array(8);
 
-
PeaceCorps[56][0] = 'Swaziland';
 
-
PeaceCorps[56][1] = 0;
 
-
PeaceCorps[56][2] = 0;
 
-
PeaceCorps[56][3] = 0;
 
-
PeaceCorps[56][4] = 0;
 
-
PeaceCorps[56][5] = 63;
 
-
PeaceCorps[56][6] = 1;
 
-
PeaceCorps[56][7] = 0;
 
-
 
-
PeaceCorps[57] = new Array(8);
 
-
PeaceCorps[57][0] = 'Tanzania';
 
-
PeaceCorps[57][1] = 0;
 
-
PeaceCorps[57][2] = 0;
 
-
PeaceCorps[57][3] = 103;
 
-
PeaceCorps[57][4] = 23;
 
-
PeaceCorps[57][5] = 45;
 
-
PeaceCorps[57][6] = 0;
 
-
PeaceCorps[57][7] = 0;
 
-
 
-
PeaceCorps[58] = new Array(8);
 
-
PeaceCorps[58][0] = 'Thailand';
 
-
PeaceCorps[58][1] = 0;
 
-
PeaceCorps[58][2] = 0;
 
-
PeaceCorps[58][3] = 50;
 
-
PeaceCorps[58][4] = 0;
 
-
PeaceCorps[58][5] = 0;
 
-
PeaceCorps[58][6] = 40;
 
-
PeaceCorps[58][7] = 0;
 
-
 
-
PeaceCorps[59] = new Array(8);
 
-
PeaceCorps[59][0] = 'Togo';
 
-
PeaceCorps[59][1] = 0;
 
-
PeaceCorps[59][2] = 23;
 
-
PeaceCorps[59][3] = 40;
 
-
PeaceCorps[59][4] = 36;
 
-
PeaceCorps[59][5] = 24;
 
-
PeaceCorps[59][6] = 0;
 
-
PeaceCorps[59][7] = 0;
 
-
 
-
PeaceCorps[60] = new Array(8);
 
-
PeaceCorps[60][0] = 'Tonga';
 
-
PeaceCorps[60][1] = 0;
 
-
PeaceCorps[60][2] = 12;
 
-
PeaceCorps[60][3] = 27;
 
-
PeaceCorps[60][4] = 0;
 
-
PeaceCorps[60][5] = 0;
 
-
PeaceCorps[60][6] = 1;
 
-
PeaceCorps[60][7] = 0;
 
-
 
-
PeaceCorps[61] = new Array(8);
 
-
PeaceCorps[61][0] = 'Turkmenistan';
 
-
PeaceCorps[61][1] = 0;
 
-
PeaceCorps[61][2] = 0;
 
-
PeaceCorps[61][3] = 72;
 
-
PeaceCorps[61][4] = 0;
 
-
PeaceCorps[61][5] = 45;
 
-
PeaceCorps[61][6] = 0;
 
-
PeaceCorps[61][7] = 0;
 
-
 
-
PeaceCorps[62] = new Array(8);
 
-
PeaceCorps[62][0] = 'Uganda';
 
-
PeaceCorps[62][1] = 0;
 
-
PeaceCorps[62][2] = 24;
 
-
PeaceCorps[62][3] = 39;
 
-
PeaceCorps[62][4] = 0;
 
-
PeaceCorps[62][5] = 89;
 
-
PeaceCorps[62][6] = 2;
 
-
PeaceCorps[62][7] = 0;
 
-
 
-
PeaceCorps[63] = new Array(8);
 
-
PeaceCorps[63][0] = 'Ukraine';
 
-
PeaceCorps[63][1] = 0;
 
-
PeaceCorps[63][2] = 50;
 
-
PeaceCorps[63][3] = 289;
 
-
PeaceCorps[63][4] = 0;
 
-
PeaceCorps[63][5] = 0;
 
-
PeaceCorps[63][6] = 0;
 
-
PeaceCorps[63][7] = 0;
 
-
 
-
PeaceCorps[64] = new Array(8);
 
-
PeaceCorps[64][0] = 'Vanuatu';
 
-
PeaceCorps[64][1] = 0;
 
-
PeaceCorps[64][2] = 12;
 
-
PeaceCorps[64][3] = 53;
 
-
PeaceCorps[64][4] = 10;
 
-
PeaceCorps[64][5] = 15;
 
-
PeaceCorps[64][6] = 4;
 
-
PeaceCorps[64][7] = 0;
 
-
 
-
PeaceCorps[65] = new Array(8);
 
-
PeaceCorps[65][0] = 'Zambia';
 
-
PeaceCorps[65][1] = 29;
 
-
PeaceCorps[65][2] = 0;
 
-
PeaceCorps[65][3] = 34;
 
-
PeaceCorps[65][4] = 35;
 
-
PeaceCorps[65][5] = 48;
 
-
PeaceCorps[65][6] = 0;
 
-
PeaceCorps[65][7] = 0;
 
-
 
-
PeaceCorps[66] = new Array(8);
 
-
PeaceCorps[66][0] = 'Indonesia';
 
-
PeaceCorps[66][1] = 0;
 
-
PeaceCorps[66][2] = 0;
 
-
PeaceCorps[66][3] = 0;
 
-
PeaceCorps[66][4] = 0;
 
-
PeaceCorps[66][5] = 0;
 
-
PeaceCorps[66][6] = 0;
 
-
PeaceCorps[66][7] = 0;
 
-
 
-
PeaceCorps[67] = new Array(8);
 
-
PeaceCorps[67][0] = 'Madagascar';
 
-
PeaceCorps[67][1] = 0;
 
-
PeaceCorps[67][2] = 0;
 
-
PeaceCorps[67][3] = 0;
 
-
PeaceCorps[67][4] = 0;
 
-
PeaceCorps[67][5] = 0;
 
-
PeaceCorps[67][6] = 0;
 
-
PeaceCorps[67][7] = 0;
 
-
 
-
PeaceCorps[68] = new Array(8);
 
-
PeaceCorps[68][0] = 'Sierra Leone';
 
-
PeaceCorps[68][1] = 0;
 
-
PeaceCorps[68][2] = 0;
 
-
PeaceCorps[68][3] = 0;
 
-
PeaceCorps[68][4] = 0;
 
-
PeaceCorps[68][5] = 0;
 
-
PeaceCorps[68][6] = 0;
 
-
PeaceCorps[68][7] = 0;
 
-
 
-
</script>
 
-
<br><br><br><br><br><br><br><br><br><br>
+
[[Category:resources]]
-
</body></html></addhtml>
+

Latest revision as of 20:48, 3 November 2010

The following is based on a probabilistic model and should be taken as estimates only.

Given two quantities the program will try and estimate the remaining numbers.
All values should be entered as numerical symbols only ("1234" instead of "1,234")

Actual Numbers (FY2009)
(as suggested starting points)
Number of Volunteers in the past year...
Worldwide
Africa
EMA
IMA
Entered Service
Finished Service (COS)
Early Terminated (ET) 1155 406 382 367
Currently Serving
TOTAL served any part of year 11549 4365 3494 3690
Rate of Early Termination:
Cohort Method %
Annual Method % 10.0% 9.3% 10.9% 9.9%
Volunteer-Year Method
Statistics:
Average length of service (months)



Definitions:

Entered Service Number of volunteers who entered service within the past year
Finished Service (COS) Number of volunteers who successfully completed a full service (COS) within the past year
Early Terminated (ET) Number of volunteers who early terminated their service within the past year. [FY2009 Actual value: 1,155 (Ref.)]
Currently Serving The average number of currently serving volunteers and trainees at any moment in time. [26May2010 Actual value: 7,340 (Ref.)]
TOTAL served any part of year The number of volunteers and trainees that served any portion of the year under study [FY2009 Actual Value: 11,549 (Ref.)]
Cohort Method ("Out of 100") Equivalent to the probability of a randomly selected volunteer Early Terminating sometime within their service.
Annual Method (current method used by Peace Corps) The number of PCVs/Ts who separated from the Peace Corps during the fiscal year divided by the total number of trainees and volunteers who served at any time during the fiscal year. (Ref.) [FY2009 Actual Value: 10.0% (Ref.)]
Volunteer-Year Method
(as decimal)
The number of ET's by an average volunteer during one year of service. Since most volunteers successfully complete their service, which is longer than one year, this number would be a "fraction of an ET". If the V-Year ET Rate was 0.20 (per year) we would expect about 2 volunteers out of 10 to ET per year, or about 1 volunteer out of 10 in a six-month period. (Ref.)
Average length of service
(months)
Average length of service among all volunteers (in months)

Note: [TOTAL served any part of year] = [Finished Service (COS)] + [Early Terminated (ET)] + [Currently Serving]
The volunteers who [Entered Service] are already counted in one of three categories as during that year they have either COSed, ETed, or are still currently serving.

The above probabilistic model of Peace Corps was developed by Michael Sheppard (RPCV / The Gambia), and it should be taken as an estimate only

Personal tools
Namespaces
Variants
Actions
Tell Your Friends
Navigation
Peace Corps News
Timelines
Country Information
Groups
Help
About
Toolbox