loglikelihoodcorrel: Calculates log-likelihood with correlated variants in...

View source: R/mr_maxlik-methods.R

loglikelihoodcorrelR Documentation

Calculates log-likelihood with correlated variants in two-sample setting (no correlation from sample overlap)

Description

Internal function for calculating log-likelihood for for maximum-likelihood method.

Usage

loglikelihoodcorrel(param, x, Taux, y, Tauy)

Arguments

param

Parameters in the model.

x

Genetic associations with the exposure.

Taux

Precision matrix for associations with the exposure.

y

Genetic associations with the outcome.

Tauy

Precision matrix for associations with the outcome.

Details

None.

Value

Log-likelihood.


MendelianRandomization documentation built on Aug. 9, 2023, 1:05 a.m.