chlm_grad: Gradient of the HLM loglikelihood.

Description Usage Arguments Value

View source: R/chlm_grad.R

Description

Gradient of the HLM loglikelihood.

Usage

1
chlm_grad(beta, gamma, y, delta, X, Z)

Arguments

beta

Mean parameter vector of length p.

gamma

Variance parameter vector of length q.

y

Vector of observations of length n.

delta

Optional logical vector of length n indicating the censorring status (TRUE: uncensored, FALSE: uncensored).

X

Mean covariate matrix of size n x p.

Z

Variance covariate matrix of size n x q.

Value

Vector of length p+q returning the gradient of the loglikelihood at the parameter values.


mlysy/hlm documentation built on Nov. 4, 2019, 7:26 p.m.