grad_offset: Gradient for Logistic Regression with Offsets

Description Usage Arguments Value

View source: R/grad.R

Description

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

Usage

1

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


survtmle documentation built on May 2, 2019, 9:44 a.m.