calculate_BF: Title Compute Bayes factors for all the p-genes

View source: R/scBT-test.R View source: R/Bayes_test.R

calculate_BFR Documentation

Title Compute Bayes factors for all the p-genes

Description

Title Compute Bayes factors for all the p-genes

Usage

calculate_BF(Y, par_null, par_alt, prior.null, prior.alt)

Arguments

par_null

: Parameters obtained after optimizing the marginal likelihood under the null hypothesis

par_alt

: Parameters obtained after optimizing the marginal likelihood under the alternative hypothesis

prior.null

: Prior probability of the null hypothesis

prior.alt

: Prior probability of the alternative hypothesis

Y:

Data list of K (number of dose groups) matrices having dimension n (cells) times p (genes)

Value

A list containing the log-likelihood under the null hypothesis, log-likelihood under the alternative hypothesis, log Bayes factor and the Bayes Factor values


satabdisaha1288/scBT documentation built on June 1, 2025, 4:06 p.m.