Summary Method for an Object of Class bootstatespace
Source: R/bootStateSpace-methods.R
summary.bootstatespace.Rd
Summary Method for an Object of Class
bootstatespace
Usage
# S3 method for class 'bootstatespace'
summary(object, alpha = NULL, type = "pc", digits = 4, ...)
Arguments
- object
Object of Class
bootstatespace
.- alpha
Numeric vector. Significance level \(\alpha\). If
alpha = NULL
, use the argumentalpha
used inobject
.- type
Charater string. Confidence interval type, that is,
type = "pc"
for percentile;type = "bc"
for bias corrected.- digits
Digits to print.
- ...
additional arguments.
Value
Returns a matrix of estimates, standard errors, number of bootstrap replications, and confidence intervals.
Examples
if (FALSE) { # \dontrun{
# prepare parameters
## number of individuals
n <- 5
## time points
time <- 50
## dynamic structure
p <- 3
mu0 <- rep(x = 0, times = p)
sigma0 <- 0.001 * diag(p)
sigma0_l <- t(chol(sigma0))
alpha <- rep(x = 0, times = p)
beta <- 0.50 * diag(p)
psi <- 0.001 * diag(p)
psi_l <- t(chol(psi))
path <- tempdir()
pb <- PBSSMVARFixed(
R = 10L, # use at least 1000 in actual research
path = path,
prefix = "var",
n = n,
time = time,
mu0 = mu0,
sigma0_l = sigma0_l,
alpha = alpha,
beta = beta,
psi_l = psi_l,
type = 0,
ncores = 1, # consider using multiple cores
seed = 42
)
summary(pb)
summary(pb, type = "bc")
} # }