bootystrapper: Bootstrap using surv_calc and organize output

Description Usage Arguments Value Examples

Description

Bootstrap using surv_calc and organize output

Usage

1
2
3
bootystrapper(d, fn, iter, wgt = "n", wgt_init = "n",
  phi_p_only = "n", fpc = "y", logit_link = "n",
  save_name = "none", ...)

Arguments

d

Input file made by format_dat().

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 curv_calc(). Default is no ("n").

fpc

Indicate to turn off the finite population correction option in curv_calc(). Default is yes ("y").

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.

Value

Estimates in a data frame with original estimate as the first row and bootstrap results in the remaining rows.

Examples

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)

boppingshoe/bootylator documentation built on May 8, 2019, 1:01 p.m.