grad_offset: Gradient for Logistic Regression with Offsets

View source: R/grad.R

grad_offsetR Documentation

Gradient for Logistic Regression with Offsets

Description

A function that computes the gradient of the for a logistic regression model with an offset term. Used by optim on occasion.

Usage

grad_offset(beta, Y, H, offset = NULL)

Arguments

beta

A vector of coefficients in a logistic glm

Y

The outcome

H

The covariate matrix

offset

The offset vector

Value

Numeric vector of the gradient of the parameter vector.


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