confint.resample | R Documentation |
Compute confidence intervals for linear mixed model using resampling (permutation or bootstrap).
## S3 method for class 'resample'
confint(
object,
parm = NULL,
null = NULL,
level = 0.95,
method = NULL,
columns = NULL,
correction = TRUE,
...
)
object |
a |
parm |
Not used. For compatibility with the generic method. |
null |
[numeric vector] the value of the null hypothesis relative to each coefficient. Only relevant for when using bootstrap. |
level |
[numeric,0-1] the confidence level of the confidence intervals. |
method |
[character] method used to compute the confidence intervals and p-values: |
columns |
[character vector] Columns to be output.
Can be any of |
correction |
[logical] correction to ensure non-0 p-values when using the percentile method, e.g. with permutations the p.value is evaluated as (#more extreme + 1)/(n.sample + 1) instead of (#more extreme)/(n.sample). |
... |
Not used. For compatibility with the generic method. |
Argument correction: if we denote by n.sample
the number of permutations that have been performed,
having the correction avoids p-values of 0 by ensuring they are at least as.numeric(correction)/(n.sample+as.numeric(correction))
,
e.g. at least 0.000999001 for a thousand permutations.
Argument correction (bootstrap): percentile confidence intervals are computed based on the quantile of the resampling distribution.
Gaussian confidence intervals and p-values are computed by assuming a normal distribution and estimating its variance based on the bootstrap distribution.
Studentized confidence intervals are computed using quantiles based on the boostrap distribution after it has been centered and rescaled by the point estimate and its standard error
Percentile and Studentized p-values are computed by finding the coverage level such that one of the bound of the confidence interval equals the null.
Argument correction (bootstrap):
Percentile p-values are computed based on the proportion of times the estimate was more extreme than the permutation estimates.
Gaussian p-values are computed by assuming a normal distribution and estimating its variance based on the permutation distribution.
Studentized p-values are computed based on the proportion of times the test statistic was more extreme than the permutation test statistic.
No confidence intervals are provided.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.