extract_logls: Extract log-likelihood ratios and associated values from a...

View source: R/extract_logls.R

extract_loglsR Documentation

Extract log-likelihood ratios and associated values from a Qij object

Description

This function applies the prior weights on the pairs for the numerator (for generality) and denominator and returns the log-likelihood ratios in a tidy format

Usage

extract_logls(Q, numer, denom)

Arguments

Q

a Qij object. Like that returned by simulate_Qij

numer

a named vector of weights to be given to the relationships for the numerator. The names are the relationships and the values are the weights. Relationships that appear in the "Tos" field of the Q that do not appear will get weights of 0.

denom

a named vector of weights to be given to the relationships for the denominator. The names are the relationships and the values are the weights. Relationships that appear in the "Tos" field of the Q that do not appear will get weights of 0.


eriqande/CKMRsim documentation built on Aug. 2, 2024, 7:23 a.m.