Description Usage Arguments References Examples
Calculating confidence intervals around pash measures for a given pash
object.
Generic function.
1 2 3 4 |
object |
|
population.size |
The size of population for the constructed |
N |
Number of bootstrap replicates. |
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. |
bs.er |
Maximal acceptable fraction of Bootstrap errors (error = a measure does not exists for a certain bootstrapped data). |
js.er |
Maximal acceptable fraction of JackKnife errors (error = a measure does not exists for a certain JackKnife cases). |
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 20 21 22 | ## Not run:
#Get a data
obj <- Inputlx(x = australia_10y$x, lx = australia_10y$lx,nax = australia_10y$nax, nx = australia_10y$nx, last_open = TRUE)
ci1 <- confint(object = obj, population.size = 1000, trace = TRUE)
print(ci1, CI.type = 'BCa')
print(ci1, CI.type = 'Percentile')
#Smaller population size, closed interval, only e0
obj <- Inputlx(x = australia_10y$x, lx = australia_10y$lx,nax = australia_10y$nax, last_open = FALSE)
ci2 <- confint(object = obj, population.size = 300, shape.type = 'none', pace.type = 'e0', trace = TRUE)
ci2
# Very small population size
### REMOVE THIS EXAMPLE ONCE THE ERROR IS CORRECTED
# There is a mistake in pash package. The linear extrapolation doesn't work for some sets with open last intervals.
obj <- Inputlx(x = australia_10y$x, lx = australia_10y$lx,nax = australia_10y$nax, nx = australia_10y$nx, last_open = TRUE)
ci3 <- confint(object = obj, population.size = 10, shape.type = 'none', trace = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.