sim_reg | R Documentation |
Performs Bayesian ‘similarity regression’ on given logical
response vector y
against list
of ontological term sets x
. It returns an object of class sim_reg_output
. Of particular interest are the probability of an association, which can be calculated with prob_association
, and the characteristic ontological profile phi, which can be visualised using the functions plot_term_marginals
, and term_marginals
). The results can be summarised with summary
.
sim_reg(
ontology,
x,
y,
information_content = get_term_info_content(ontology, x),
sim_params = list(ontology = ontology, information_content = information_content),
using_terms = get_terms(sim_params),
term_weights = rep(0, length(using_terms)),
prior = discrete_gamma(using_terms),
min_BF = -Inf,
max_select = 2000L,
max_phi_count = 200L,
two_way = TRUE,
selection_fn = fg_step_tab(N = length(y)),
lik_method = NULL,
lik_method_args = list(),
gamma0_ml = bg_rate,
min_ratio = 1e-04,
...
)
ontology |
|
x |
|
y |
|
information_content |
Numeric vector of information contents of terms named by term ID. Defaults to information content based on frequencies of annotation in |
sim_params |
List of arguments to pass to |
using_terms |
Character vector of term IDs giving the complete set of terms to include in the the |
term_weights |
Numeric vector of prior weights for individual terms. |
prior |
Function for computing the unweighted prior probability of a |
min_BF |
Bayes factor threshold below which to terminate computation, enabling faster execution time at the expense of accuracy and precision. |
max_select |
Upper bound for number of |
max_phi_count |
Upper bound for number of |
two_way |
Boolean value determining whether to calculate semantic similarity ‘in both directions’ (i.e. compute |
selection_fn |
Function for selecting values of |
lik_method |
Function for calculating marginal likelihood contional on values of |
lik_method_args |
List of additional arguments to pass to |
gamma0_ml |
Function for computing marginal likelihood of data under baseline model |
min_ratio |
Lower bound on ratio below which to discard |
... |
Additional arguments to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.