Description Usage Arguments Value
View source: R/weighted-sampling.R
Calculate average likelihood over isomorphic trees
1 | likelihood_weighted(par, prev_par, n, x, B)
|
par |
parameters to optimize over. par[1] is beta_0 and par[2] is beta_1 |
prev_par |
parameters to form the weights. 1 is beta_0 and 2 is beta_1 |
n |
cluster size |
x |
number of positives in each cluster |
B |
number of samples for each |
return_neg |
logical. Default is TRUE, returns the negative log likelihood |
likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.