Description Usage Arguments Author(s) References Examples
Default procedure to perform bootstrap and calculate confidence intervals of pash measures.
Internal function
1 2 3 | boot.default(dx, x, pash.parent, N = 1000, bs.er = 0.25, jk.er = 0.1,
pace.type = "all", shape.type = "all", q = 0.5, harmonized = TRUE,
trace = TRUE, alpha = 0.05)
|
dx |
A vector with integer counts (deaths). |
x |
Beginning of the Age/time class. |
pash.parent |
A parent |
N |
Number of bootstrap replicates. |
bs.er |
Maximal acceptable fraction of Bootstrap errors. |
pace.type |
Which pace measure should be returned (default "all")?
Use "none" if you don't wat to return any pace measure. See |
shape.type |
Which shape measure should be returned (default "all")?
Use "none" if you don't wat to return any shape measure. See |
q |
GetPace parameter. Quantile specification for age where q percent of the life-table population is still alive (defaults to median).
See |
harmonized |
GetShape parameter. Should the harmonized version of the shape measures be returned (default |
trace |
Logical indicating if to show summary of performed bootstrap. |
alpha |
Significance level. |
js.er |
Maximal acceptable fraction of JackKnife errors. |
Maciej J. Danko <danko@demogr.mpg.de> <maciej.danko@gmail.com>
Efron, B., & Tibshirani, R. J. (1993). An introduction to the bootstrap. New York: Chapman & Hall.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # ************************** REMOVE THIS ******************************
# Some functions will not work as they are not in the namespace
# Before integrating with pash please add "pash:::" in front of them.
# To test them just run all functions in the bootpash.r
# ***************************** END ***********************************
## Not run:
#Get some data
population.size=105
obj <- Inputlx(x = australia_10y$x, lx = australia_10y$lx,nax = australia_10y$nax, nx = australia_10y$nx, last_open = TRUE)
dx <- lx2dx(round(object$lt$lx*population.size))
x <- obj$lt$x
#Calcualte confidence intervals usung bootstrap
z <- boot.default(dx = dx, x = x, pash.parent = obj, trace = TRUE)
z
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.