y
given x
conditional on association and given data.Predicted probability of y
given x
conditional on association and given data.
posterior_prediction(
ontology,
x,
y,
sim_reg_out,
x_new = x,
information_content = get_term_info_content(ontology, x),
sim_params = list(ontology = ontology, information_content = information_content),
two_way = TRUE,
prediction_fn = NULL,
min_ratio = 0.001,
...
)
Vector of predicted probabilities corresponding to term sets in x_new
.
ontology_index
object.
list
of character
vectors of ontological terms.
logical
response vector.
Object of class sim_reg_output
.
New list
of ontological term sets to perform prediction on. Defaults to x
.
Numeric vector of information contents of terms named by term ID. Defaults to information content based on frequencies of annotation in x
.
List of arguments to pass to get_asym_sim_grid
.
Boolean value determining whether to calculate semantic similarity `in both directions' (i.e. compute s_x
and s_phi
or just s_phi
).
Function for computing predicted probabilities for y[i]=TRUE
.
Threshold for fraction of posterior probability which sampled phi must hold in order to be included in sum.
Additional arguments to pass to prediction_fn
.