Get heterogeneity statistics.
Usage
mr_heterogeneity(
dat,
parameters = default_parameters(),
method_list = subset(mr_method_list(), heterogeneity_test & use_by_default)$obj
)
Arguments
- dat
Harmonised exposure and outcome data. Output from
harmonise_data()
.- parameters
Parameters to be used for various MR methods. Default is output from
default_parameters()
.- method_list
List of methods to use in analysis. See
mr_method_list()
for details.