logistic_ll: Logistic-log likelihood

Description Usage Arguments Value

View source: R/linear_crt.r

Description

Returns the log-likelihood of logistic regression fit(s). Intended for use as a feature-importance measure for the CRT.

Usage

1
logistic_ll(logit_inv, Y, genotypes = TRUE)

Arguments

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 logit_inv gives the total logit inverse for the observation.

Value

A vector of length k, the log-likelihoods of the columns of Y


stephenbates19/digitaltwins documentation built on Feb. 25, 2020, 12:41 a.m.