AdjustSIZE_fun | R Documentation |
This function adjusts MME estimated size parameter
of prior, which is a negative binomial distribution,
using estimates from maximizing marginal distirbution
(BB_SIZE
). Simulation studies has shown this hybrid
method of using adjusted MME size estimates is the most
robust (see bayNorm paper). Hence, this is the default
option for estimating size in bayNorm.
AdjustSIZE_fun(BB_SIZE, MME_MU, MME_SIZE)
BB_SIZE |
size estimated from |
MME_MU |
mu estimated from EstPrior. |
MME_SIZE |
size estimated from EstPrior. |
MME_SIZE_adjust: A vector of estimated size. Adjusted MME_SIZE based on BB_SIZE (size estimated by maximizing marginal distribution)
data('EXAMPLE_DATA_list') MME_MU<-rlnorm(100,meanlog=5,sdlog=1) MME_SIZE<-rlnorm(100,meanlog=1,sdlog=1) BB_SIZE<-rlnorm(100,meanlog=0.5,sdlog=1) adjustt<-AdjustSIZE_fun(BB_SIZE, MME_MU, MME_SIZE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.