Returns the log-likelihood of logistic regression fit(s). Intended for use as a feature-importance measure for the CRT.
logistic_ll(logit_inv, Y, genotypes = TRUE)
logit_inv | Aector of length n OR a matrix of dimension (n x k) giving the logit inverse of the probability of being one for k different models. |
---|---|
Y | Observed responses, a 0-1 vector of length n or a matrix of dimension (n x k). |
genotypes | Whether to interpret the data as genotypes, i.e. summing pairs of rows
of |
A vector of length k, the log-likelihoods of the columns of Y