gradient: Copied from ashr package because I need it and it is not...

Description Usage Arguments Value

Description

Copied from ashr package because I need it and it is not exported.

Usage

1
gradient(matrix_lik)

Arguments

matrix_lik

The (i, j)th element of matrix_like is the contribution to the likelihood of the ith observation and the jth component.

Value

The kth element of this vector is the derivative of the loglik for π=(π_0,...,1-π_0,...) with respect to π_0 at π_0 = 1.


dcgerard/stramash documentation built on May 15, 2019, 1:24 a.m.