Learn R Programming

qgg (version 1.1.6)

adjustB: 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
)

Value

A list containing the adjusted B-values.

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.