truncDeconv: Computes Empirical Bayes Estimates via Deconvolution for...

Description Usage Arguments See Also

View source: R/asafGmodeling.R

Description

This function has a similar functionality as deconv, excpet that it is meant to handle the case in which only the selected are observed.

Usage

1
2
truncDeconv(x, threshold, meanValues = NULL, twoSided = TRUE,
  splineDegree = 10, binWidth = 0.1, nBins = 100)

Arguments

x

the observed (truncated) sample of z-scores

threshold

the threshold used to screen the observations

meanValues

a grid of discrete mean parameter values

twoSided

whether the selection was one-sided or two-sided. if TRUE, then a selection rule of abs(x) > abs(threshold) is assumed. Otherwise, a selection rule of x > threshold is assumed.

splineDegree

the number of degrees for the spline fit in the deconvolution

binWidth

the function discretizes the sample into bins, this is the bin width. Take precedence over nBins.

nBins

number of bins to use in discretization

See Also

predict.truncDeconv


ammeir2/selectiveTweedy documentation built on May 24, 2019, 3:02 a.m.