Gsmooth: Title Depracated slow R version of the G statistic smoother....

Description Usage Arguments Value

View source: R/statFunctions.R

Description

Title Depracated slow R version of the G statistic smoother. Can be useful to test kernels

Usage

1
2
3
4
5
6
Gsmooth(
  G,
  kern = function(d) {     (1 - d^3)^3/sum((1 - d^3)^3) },
  map,
  W = 25
)

Arguments

G

Raw G statistic

kern

The Kernel function to be used. Should be a function that gets a single parameter (d - distance from variant) and returns the transformed distance.

map

The genetic map vector (see gqtl)

W

The window for smoothing (see gqtl)

Value

Vector of smoothed G values


eyalbenda/xQTLstats documentation built on Dec. 20, 2021, 7:39 a.m.