Skip to contents

This function calculates the Q statistic for heterogeneity in Mendelian Randomization analysis.

Usage

Qstatistic(b_group, se_group, b_overall)

Arguments

b_group

Numeric vector, effect sizes for each group.

se_group

Numeric vector, standard errors for each group.

b_overall

Numeric, overall effect size.

Value

Numeric, Q statistic for heterogeneity.