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 Sept. 28, 2024, 6:51 p.m.