<div dir="ltr"><div>I just resubmitted now that I am registered on the mailing list.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">I'm new to BaSTA and am a pretty novice R user. I think my question might be general to R and not specific to BaSTA. Either way, I am hoping the community can point me in the right direction. <div><br></div><div>My dataset is 7700 lizards captured over 42 months in a closed island population. There were 4 sampling periods in each year and the sampling was close to 90% of the population captured during each sampling period (7-12 days). The vast majority of animals had lifespans shorter than 12 months. </div><div><br></div><div>I first constructed my Capture History, Birth/Death Matrix, and Covariate Matrix (sex data for each individual). </div><div><br></div><div>Then I merged the matrices with:</div><div><div>inputMat <- merge(birthDeath, Y, by.x = "ID", by.y = "ID")</div><div>inputMat <- merge(inputMat, covMat, by.x = "ID", by.y = "ID")</div><div><br></div><div>Things seem to work OK there. I view inputMat and everything looks as it should. </div><div><br></div><div>Then when I run DataCheck with:</div><div>newData <- DataCheck(inputMat, studyStart = 4, studyEnd = 46, autofix = rep(1, 7), silent = FALSE)<br></div><div><br></div><div>I get the following error:</div><div>Error in rowSums(Y) : 'x' must be numeric<br></div><div><br></div><div>Can someone help me work on this error? </div><div><br></div><div>Thanks for having a look at this. </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 13, 2019 at 4:39 PM Aaron Reedy <<a href="mailto:amr3mb@virginia.edu">amr3mb@virginia.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I'm new to BaSTA and am a pretty novice R user. I think my question might be general to R and not specific to BaSTA. Either way, I am hoping the community can point me in the right direction. <div><br></div><div>My dataset is 7700 lizards captured over 42 months in a closed island population. There were 4 sampling periods in each year and the sampling was close to 90% of the population captured during each sampling period (7-12 days). The vast majority of animals had lifespans shorter than 12 months. </div><div><br></div><div>I first constructed my Capture History, Birth/Death Matrix, and Covariate Matrix (sex data for each individual). </div><div><br></div><div>Then I merged the matrices with:</div><div><div>inputMat <- merge(birthDeath, Y, by.x = "ID", by.y = "ID")</div><div>inputMat <- merge(inputMat, covMat, by.x = "ID", by.y = "ID")</div><div><br></div><div>Things seem to work OK there. I view inputMat and everything looks as it should. </div><div><br></div><div>Then when I run DataCheck with:</div><div>newData <- DataCheck(inputMat, studyStart = 4, studyEnd = 46, autofix = rep(1, 7), silent = FALSE)<br></div><div><br></div><div>I get the following error:</div><div>Error in rowSums(Y) : 'x' must be numeric<br></div><div><br></div><div>Can someone help me work on this error? </div><div><br></div><div>Thanks for having a look at this. </div><div><br></div><div>Aaron</div><div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-546610703345263650gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Aaron M. Reedy<div><br></div><div>NSF Postdoctoral Research Fellow in Biology</div><div><br></div><div><a href="http://www.aaronmreedy.com/" style="font-size:12.8px" target="_blank">http://www.aaronmreedy.com/</a></div><div><a href="http://www.evolutioned.org/" target="_blank">http://www.evolutioned.org/</a><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Aaron M. Reedy<div><br></div><div>NSF Postdoctoral Research Fellow in Biology</div><div><br></div><div><a href="http://www.aaronmreedy.com/" style="font-size:12.8px" target="_blank">http://www.aaronmreedy.com/</a></div><div><a href="http://www.evolutioned.org/" target="_blank">http://www.evolutioned.org/</a><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div>