likelihood_weighted: Calculate average likelihood over isomorphic trees

Description Usage Arguments Value

View source: R/weighted-sampling.R

Description

Calculate average likelihood over isomorphic trees

Usage

1
likelihood_weighted(par, prev_par, n, x, B)

Arguments

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

Value

likelihood


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.