<div dir="ltr">Hi Yasir,<div><br></div><div>For now, I am trying to run the script as identical as possible as the way Madon and her colleagues ran it in her paper. When I removed the function(data=data) it did not change anything to the results, hence why I just left it as it is. </div><div><br></div><div>Cheers, Tim</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 1, 2016 at 4:35 PM, Yasir Kaheil [via R] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4719209&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">

        <p dir="ltr">Why don't you just simply read the CSV with read.csv instead of that function in the beginning?</p>
<br></span><div class="gmail_quote"><div><div class="h5"><div dir="ltr">Le ven. 1 avr. 2016 7:36 PM, TimvdStap <<a href="http:///user/SendEmail.jtp?type=node&node=4719208&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> a écrit :<br></div></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div class="h5">Hi everyone,<br>
<br>
I'm working on estimating the population size of Risso's dolphins in the<br>
Azores using mark-recapture data, whereby I take transient individuals into<br>
account (i.e., I estimate a transience-corrected population size). For this,<br>
I use an R script, as used in Madon et al (2013) (see link to paper at<br>
bottom of this post). Though I feel I have managed to get the script<br>
running, for some reason the transience-corrected population size for my<br>
final year is far *higher* than the original population size. This is<br>
obviously not supposed to happen, but I am unsure as to whether the<br>
transience-corrected population size for my final year is wrong, or the<br>
initial population size.<br>
<br>
Attached I have a sample of my data as a .csv-file, and a word document with<br>
the R script (as it's too long to post here). Of course I have made some<br>
minor changes to the script to fit my data better. If anyone could have a<br>
look at the script, and possibly tell me where I am going wrong or what I'm<br>
missing, that would be great!!! I have been staring at the script for so<br>
long and trying to figure this one out, that I feel I'd miss even the most<br>
obvious of mistakes at the moment..<br>
<br>
Any help is greatly appreciated!!<br>
<br>
Kind regards,<br>
<br>
Tim<br>
<br>
<a href="http://onlinelibrary.wiley.com/doi/10.1111/j.1748-7692.2012.00610.x/abstract?userIsAuthenticated=false&deniedAccessCustomisedMessage=" rel="nofollow" link="external" target="_blank">http://onlinelibrary.wiley.com/doi/10.1111/j.1748-7692.2012.00610.x/abstract?userIsAuthenticated=false&deniedAccessCustomisedMessage=</a><br>
<br>
Risso_example.csv<br>
<<a href="http://r.789695.n4.nabble.com/file/n4719206/Risso_example.csv" rel="nofollow" link="external" target="_blank">http://r.789695.n4.nabble.com/file/n4719206/Risso_example.csv</a>><br>
Rscript_TvdS.docx<br>
<<a href="http://r.789695.n4.nabble.com/file/n4719206/Rscript_TvdS.docx" rel="nofollow" link="external" target="_blank">http://r.789695.n4.nabble.com/file/n4719206/Rscript_TvdS.docx</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://r.789695.n4.nabble.com/Correcting-for-transience-in-mark-recapture-data-with-R-tp4719206.html" rel="nofollow" link="external" target="_blank">http://r.789695.n4.nabble.com/Correcting-for-transience-in-mark-recapture-data-with-R-tp4719206.html</a><br>
Sent from the datatable-help mailing list archive at Nabble.com.<br>
_______________________________________________<br>
datatable-help mailing list<br>
</div></div><a href="http:///user/SendEmail.jtp?type=node&node=4719208&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" rel="nofollow" link="external" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br>
</blockquote></div>
<br>_______________________________________________
<br>datatable-help mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4719208&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" rel="nofollow" link="external" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a>

        
        
        <div style="margin-top:1em;color:#666666;font-size:11px">
                                Yasir Kaheil

                        </div>
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://r.789695.n4.nabble.com/Correcting-for-transience-in-mark-recapture-data-with-R-tp4719206p4719208.html" target="_blank" rel="nofollow" link="external">http://r.789695.n4.nabble.com/Correcting-for-transience-in-mark-recapture-data-with-R-tp4719206p4719208.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Correcting for transience in mark-recapture data with R, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://r.789695.n4.nabble.com/Correcting-for-transience-in-mark-recapture-data-with-R-tp4719206p4719209.html">Re: Correcting for transience in mark-recapture data with R</a><br/>
Sent from the <a href="http://r.789695.n4.nabble.com/datatable-help-f2315188.html">datatable-help mailing list archive</a> at Nabble.com.<br/>