50% off: Unlimited data and AI learning.
The State of Data & AI Literacy 2025

MendelianRandomization (version 0.10.0)

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

Description

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

Usage

loglikelihood(param, x, sigmax, y, sigmay)

Value

Log-likelihood.

Arguments

param

Parameters in the model.

x

Genetic associations with the exposure.

sigmax

Standard errors of associations with the exposure.

y

Genetic associations with the outcome.

sigmay

Standard errors of genetic associations with the outcome.

Details

None.