grad: Gradient for Logistic Regression

Description Usage Arguments Value

View source: R/grad.R

Description

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

Usage

1
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


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