ipm_bootstrap: Parametric Bootstrap Estimation

Description Usage Arguments Value

View source: R/ipm_bootstrap.R

Description

Using parametric bootstrap to compute credible interval.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ipm_bootstrap(
  result,
  data = NULL,
  type = "l",
  real = NULL,
  priors = NULL,
  times = 1000,
  maxtime = 5,
  unit = "mins",
  save = 20000L,
  chain = 3
)

Arguments

result

an mcmcrs object, the result from ipm_analyse.

data

an nlists object, simulation dataset returned by ipm_sim.

type

a string, specifying the model used to analyse, commonly "l", "cl" and "clcl".

real

an list object, specifying the real value using for simulation.

priors

a string of code to set the prior.

times

a scalar, specifying the number of samples.

maxtime

a scalar, specifying the maximum time to spend on analysis.

unit

a character string specifying the units of time for max.time. See difftime.

save

a scalar, the number of (potentially thinned) samples to save.

chain

a scalar, the number of MCMC chains.

Value

a list object, containing credible interval, RMSE and coverage probability.


zywhy9/IPM documentation built on April 19, 2020, 10:24 p.m.