rppvalue(x, method = c("bootstrap", "normal"), x.boot)x should be compared with, see Details.x.
rpteststat. Hence, ideally, both x and x.boot stem from a call of the
latter.If method = "bootstrap", then bootstrap p-values are computed. The values of x are
compared to those of x.boot. The number of rows of x.boot has to match the number of
columns of x (or its length if it is a vector). For most applications, however, x will
be a single number and x.boot will be the bootstrap replications of x
For method = "normal" the p-values are computed using the asymptotic normal approximation of
the test statistic. x can be a vector, a matrix or an array of numerics.
The elements of x are interpreted as statistics of separate, independent tests, and adjusting
the p-values for multiple comparison may be necessary.
rpteststat for the computation of the test statistics, ruinprob for
computating the probability of ruin, and rpjack for the computation of the standard
errors.p.adjust from the package stats provides methods to adjust p-values for
multiple testing.