Learn R Programming

FREG (version 1.1)

gradient: Estimation of gradient of log-likelihood function

Description

First derivative of log-likelihood function

Usage

gradient(x, y, beta)

Arguments

x

a design matrix which is a product of inner product of basis functions and basis coefficients of functional covariate X

y

a response variable of class factor

beta

initial values for beta regression coefficients and intercepts

Value

grd

a vector of gradient values at the estimated optimum