Estimates variance components for a two-kernel mixed model using Kang et al. (2008) spectral profiling over a convex kernel mixture weight.
Usage
hbr_reml_two_kernel(
y,
X,
G_R,
K_H = NULL,
w_grid = seq(0, 1, by = 0.1),
refine = TRUE
)Arguments
- y
Numeric vector of phenotypes.
- X
Matrix of fixed-effect covariates.
- G_R
Square relationship matrix (background polygenic kernel).
- K_H
Square relationship matrix (feature haplotype kernel) or NULL.
- w_grid
Numeric grid for kernel mixing weight w in [0, 1].
- refine
Logical. Perform golden section search refinement around best grid point.
