ci2df {groupcompare} | R Documentation |
Convert List to Data Frame
Description
Converts a list of confidence intervals into a data frame.
Usage
ci2df(x)
Arguments
x |
A list where each element is a list of data frames or matrices containing confidence interval data as the result of the function |
Details
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]
.
Value
A data frame with rows representing methods and columns representing statistics, containing the confidence intervals.
Author(s)
Zeynel Cebeci, A. Firat Ozdemir, Engin Yildiztepe
See Also
Examples
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
[Package groupcompare version 1.0.1 Index]