<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Catherine emailed me earlier about a problem she was having
with members.&nbsp; She was working on a count of baboons in each group at the
start of each month and was getting no output for some groups in some months.&nbsp;
An example she gave was <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>select * from members where date &gt;= '2008-01-01' and grp
= '1.10'<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>whereas queries for other groups on the same dates worked
fine (e.g., Linda&#8217;s group on the above date).<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I dug around a little and found that members was only
listing dates with an origin of I &#8211; only the interpolated data is showing
up in members. &nbsp;Example &#8211; all the census data is missing from Apollo&#8217;s
members record:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>select * from members where date &gt;= '2008-01-01' and grp
= '1.10' and sname = 'APO' order by date;<o:p></o:p></p>

<p class=MsoNormal>select * from census where date &gt;= '2008-01-01' and grp =
'1.10' and sname = 'APO' order by date;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>This happens with older data too (e.g., select * from
biograph where sname = 'BEA'; select * from census where sname = 'BEA' order by
date; select * from members where sname = 'BEA' order by date; &nbsp;&nbsp;&nbsp;&nbsp;Beam
doesn&#8217;t even show up in members until the end of 1993 when his &#8220;L&#8221;
census records cease)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I thought maybe something buggy happened during the last
rebuild so I tried rebuilding it but it is still the same.&nbsp; It is doing
the same thing in babase_test.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Remember last week when I said Amok was weird because he was
the only baboon with more than one entry where the interp column = 0?&nbsp;
This is why.&nbsp; Amok&#8217;s census data we just added for when he was Billy
(1995-1997) is in members (each census line gets interp = 0) but his later
census data when he entered a study group is not in members so there are no
rows there with origin C or interp = 0.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>select * from members where interp = 0;<o:p></o:p></p>

<p class=MsoNormal>select * from members where sname = 'AMO' order by
date;&nbsp; <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Karl, when you made that change to the interpolation rules
to interpolate correctly around Amok&#8217;s birth, could that have thrown off whatever
interpolation rule pulls the census data into members with the interpolated
data?&nbsp; Or does rebuilding it from scratch not pull in the existing census
data (which would be another bug)?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks,<o:p></o:p></p>

<p class=MsoNormal>Niki<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>