grad: Gradient for Logistic Regression

View source: R/grad.R

gradR Documentation

Gradient for Logistic Regression

Description

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

Usage

grad(beta, Y, X)

Arguments

beta

A vector of coefficients in a logistic glm

Y

The outcome

X

The design matrix

Value

Numeric vector of the gradient of the parameter vector.


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