add_rsq: Estimate r-square of each association

View source: R/add_rsq.r

add_rsqR Documentation

Estimate r-square of each association

Description

Can be applied to exposure_dat, outcome_dat or harmonised_data. Note that it will be beneficial in some circumstances to add the meta data to the data object using add_metadata() before running this function. Also adds effective sample size for case control data.

Usage

add_rsq(dat)

Arguments

dat

exposure_dat, outcome_dat or harmonised_data

Value

data frame


MRCIEU/TwoSampleMR documentation built on April 22, 2024, 8:42 p.m.