p_kernel_single: p_kernel_single

View source: R/zimfrv.R

p_kernel_singleR Documentation

p_kernel_single

Description

Compute the p-value for the kernel test

This function takes a diagonal matrix of weights, a data frame of rare variants and a matrix of Score statistics produced by U_fi_lmd for ZIP model or U_phi_mu4zinb for ZINB model to compute the p-value for the kernel test.

Usage

p_kernel_single(wt_matrix2, G_rare, s)

Arguments

wt_matrix2

a diagonal matrix containing the squared weights for all variants

G_rare

a data frame containing data of rare variants

s

a matrix of the score statistics for each variant from each subject

Value

the p-value for the kernel test (ZIP-k)


ZIM4rv documentation built on April 3, 2025, 7:39 p.m.