adjustB: Adjust B-values

View source: R/genomic_bayes.R

adjustBR Documentation

Adjust B-values

Description

This function adjusts the B-values based on the LD structure and other parameters. The adjustment is done in subsets, and a plot of observed vs. predicted values is produced for each subset.

Usage

adjustB(
  b = NULL,
  seb = NULL,
  LD = NULL,
  msize = 100,
  overlap = 50,
  nrep = 20,
  shrink = 0.001,
  threshold = 1
)

Arguments

b

A numeric vector containing the B-values to be adjusted. If NULL (default), no adjustments are made.

LD

A matrix representing the linkage disequilibrium (LD) structure.

msize

An integer specifying the size of the subsets.

overlap

An integer specifying the overlap size between consecutive subsets.

shrink

A numeric value used for shrinkage. Default is 0.001.

threshold

A numeric value specifying the threshold. Default is 1e-8.

Value

A list containing the adjusted B-values.


psoerensen/qgg documentation built on March 9, 2024, 10:02 p.m.