estimate_densities: Estimate parameters under the null and alternative densities

Description Usage Arguments Value

View source: R/density_estimation.R

Description

Estimate the parameters of the null and alternative density functions. This function calls either estimate_densities_modT or estimate_densities_pval for density estimation using moderated t-statistics or P-values, respectively.

Usage

1
2
estimate_densities(betas = NULL, sds = NULL, df = NULL,
  pvals = NULL, alt_prop, mafs = NULL, N = NULL, use_tstats = TRUE)

Arguments

betas

vector of coefficient estimates.

sds

vector of standard errors (for coefficient estimates).

df

scalar or vector of first degrees of freedom of the F-distribution.

pvals

vector of P-values.

alt_prop

proportion of test statistics from the alternative density.

mafs

vector of minor allele frequencies (MAFs).

N

scalar or vector of number of subjects.

use_tstats

logical indicating whether to use moderated t-statistics (TRUE) or P-values (FALSE).

Value

See estimate_densities_modT or estimate_densities_pval.


kjgleason/Primo documentation built on Sept. 7, 2021, 3:58 a.m.