Learn R Programming

survtmle (version 1.1.1)

LogLikelihood_offset: 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.