LogLikelihood_offset: Log-Likelihood Offset

View source: R/LogLikelihood.R

LogLikelihood_offsetR Documentation

Log-Likelihood Offset

Description

Computes the log-likelihood for a logistic regression model with an offset. Used by optim on occasion.

Usage

LogLikelihood_offset(beta, Y, H, offset)

Arguments

beta

A vector of coefficients in a logistic GLM.

Y

A vector of the outcome.

H

The matrix of covariates.

offset

The vector of offsets.

Value

Numeric of the summed negative log-likelihood loss over observations.


benkeser/survtmle documentation built on Nov. 23, 2023, 4:45 a.m.