ci2df | R Documentation |
Converts a list of confidence intervals into a data frame.
ci2df(x)
x |
A list where each element is a list of data frames or matrices containing confidence interval data as the result of the function |
This function takes a list of confidence intervals and converts it into a data frame. Each row represents a method, and each column represents a statistic. Confidence intervals are formatted as strings in the form [lower, upper]
.
A data frame with rows representing methods and columns representing statistics, containing the confidence intervals.
Zeynel Cebeci, A. Firat Ozdemir, Engin Yildiztepe
bootstrap
ciresults <- list(
method1 = data.frame(lower = c(-0.1, 0.2), upper = c(0.3, 0.4), row.names = c("stat1", "stat2")),
method2 = data.frame(lower = c(0.2, 0.3), upper = c(0.4, 0.5), row.names = c("stat1", "stat2"))
)
ciresults
cidf <- ci2df(ciresults)
cidf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.