Description Usage Arguments Details Value
View source: R/loglike-faster2.R
Calculate the log likelihood of a cluster conditioned on size and smear pos. num
1 | loglike_cond_fast(p_plus, p_neg, clust_df, is_truncated = FALSE, w_pos = 0.5)
|
p_plus |
probability of smear pos |
p_neg |
probability of smear neg |
clust_df |
data frame with the following columns |
is_truncated |
logical default is FALSE |
w_pos |
empirical weights of number of positive smears
|
if i_neg is not a column in clust_df we will use n-i_pos - 1 as i_neg. If 'is_truncated' is TRUE, we will calculate the the zero-truncated likelihood
log likelihood summed over the clusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.