linesearch: Perform a line search of the Genomic Architecture parameter s

Description Usage Arguments Value See Also

View source: R/ArchitectureModel.R

Description

Evaluate the loss function lossfunctionp for each value of s in seq(range[1],range[2],length.out=nout).

Usage

1
2
3
4
5
6
7
8
linesearch(
  nout,
  dat,
  bins = defaultbins(),
  thresholds = c(2.5, 3),
  range = c(-2, 2),
  sigma = NULL
)

Arguments

nout

The number of values to evaluate.

dat

A data frame of (f,beta) pairs

bins

(Default: defaultbins) the histogram bins to use

thresholds

(Default: defaultthresholds) the tail areas to compare (in s.d units).

range

(Default: c(-2,2)) The range of s values to evaluate between

sigma

(Default: NULL, meaning use the best value) Genomic architecture sigma

Value

a dataframe contining s and the score for that s.

See Also

fullsearch to infer a single p, or bootstrap to generate a distribution of estimates of s.


danjlawson/robustarchitecture documentation built on Dec. 19, 2021, 8:09 p.m.