SHadj: Correct index event bias for new data

View source: R/SHadj.R

SHadjR Documentation

Correct index event bias for new data

Description

Correct index event bias for new data

Usage

SHadj(
  x,
  dat,
  snp_col = "SNP",
  xbeta_col = "BETA.incidence",
  xse_col = "SE.incidence",
  ybeta_col = "BETA.prognosis",
  yse_col = "SE.prognosis"
)

Arguments

x

an pbject of the class SH obtained from the slopehunter function.

dat

A data.frame with harmonised effects and alleles, formatted using the harmonise_effects function.

snp_col

Name of column with SNP IDs.

xbeta_col

Required name of column with effects on the incidence trait.

xse_col

Required name of column with standard errors of xbeta.

ybeta_col

Required name of column with unadjusted effects on the prognosis trait.

yse_col

Required name of column with standard errors of ybeta.

Value

data.frame with adjusted estimates


Osmahmoud/SlopeHunter documentation built on Oct. 7, 2022, 4:38 p.m.