Description Usage Arguments Value Examples
Bootstrap using surv_calc and organize output
1 2 3 | bootystrapper(d, fn, iter, wgt = "n", wgt_init = "n",
phi_p_only = "n", fpc = "y", logit_link = "n",
save_name = "none", ...)
|
d |
Input file made by |
fn |
Function to run the bootstrap on. |
iter |
Amount of bootstrap iterations. |
wgt |
Indicates whether to weight the sampling probability. Default is no ("n"). |
wgt_init |
Indicates whether to calculate the original estimates using weighted probability. Default is no ("n"). |
phi_p_only |
Indicate to turn off the phi_p_only option in |
fpc |
Indicate to turn off the finite population correction option in |
logit_link |
Indicate to use "RMark" or "marked" and estimate using logit link. The default here is none ("n"). |
save_name |
Name to save bootstrap output in CSSOUTPUT in SQL server. No results will be saved if nothing is specified. |
Estimates in a data frame with original estimate as the first row and bootstrap results in the remaining rows.
1 2 3 4 5 | # To conduct standard CSS bootstrap procedures
out1<- bootystrapper(detect_data, surv_calc, iter= 1000, fpc= 'n', save_name='SR HCH 2008 CATH')
# To conduct weighted bootstrap and produce only survival and detection estimates
out2<- bootystrapper(detect_data, surv_calc, iter= 100, wgt= 'y', wgt_init= 'y', phi_p_only= 'y')
head(out2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.