e2_density: Density function of p-values

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

These functions based on normal assumption and transformation to derive a (mixture) density function of p-values.

Usage

1
2
  dpval(x, mu = 0, log = FALSE)
  dmixpval(x, eta, mu)

Arguments

x

support of p-values which should be between 0 and 1.

mu

hypothetical mean of testing statistics (in normal distribution) for producing p-values.

log

if return log of density.

eta

mixing proportion of K components if a mixture is assumed.

Details

Note that eta and mu in dmixpval() are of length K for K component mixtures.

Value

Corresponding density values (to the input x) are returned.

Author(s)

Wei-Chen Chen and Ranjan Maitra.

References

http://maitra.public.iastate.edu/

See Also

gendataset(), qvalue().

Examples

1
2
3
4
5
6
library(MixfMRI, quietly = TRUE)
set.seed(1234)
da <- gendataset(phantom = shepp1fMRI, overlap = 0.01)
x <- da$pval[!is.na(da$pval)][1:100]
dpval(x)
dmixpval(x, mu = da$mu, eta = da$eta)

MixfMRI documentation built on April 26, 2018, 5:03 p.m.