Recursively searches a nested list to extract summary statistics (z, beta, or se)
using `variant_names` and `sumstats`. Computes `z` if needed from `betahat` and `sebetahat`.
Usage
extract_flatten_sumstats_from_nested(data, extract_inf = "z", max_depth = 3)
Arguments
- data
A nested list structure potentially containing `variant_names` and `sumstats`.
Character. One of `"z"`, `"beta"`, or `"se"`.
- max_depth
Integer. Maximum depth to search within the list. Default is 3.
Value
A data.frame with columns `variants` and the requested summary statistic.
Examples
if (FALSE) { # \dontrun{
result <- extract_data(nested_list_object, extract_inf = "z")
} # }