R/pool.R
transpose_results.Rd
Transposes a Results object (as created by analyse()) in order to group the same estimates together into vectors.
analyse()
transpose_results(results, components)
A list of results.
a character vector of components to extract (i.e. "est", "se").
"est", "se"
Essentially this function takes an object of the format:
x <- list( list( "trt1" = list( est = 1, se = 2 ), "trt2" = list( est = 3, se = 4 ) ), list( "trt1" = list( est = 5, se = 6 ), "trt2" = list( est = 7, se = 8 ) ) )
and produces:
list( trt1 = list( est = c(1,5), se = c(2,6) ), trt2 = list( est = c(3,7), se = c(4,8) ) )