gradLMM: Gradient of the log-likelihood of a linear mixed model with...

View source: R/exemple.R

gradLMMR Documentation

Gradient of the log-likelihood of a linear mixed model with random intercept

Description

Gradient of the log-likelihood of a linear mixed model with random intercept

Usage

gradLMM(b, Y, X, ni)

Arguments

b

numeric vector specifying the parameter's values in the following order : first the fixed effects and then the standard deviation of the random intercept and of the independent error

Y

numeric vector including the dependent outcome vector ordered by subject

X

numeric matrix including the covariates

ni

interger vector giving the number of repeated measures for each subject

Value

a vector containing the gradient of the log-likelihood of the linear mixed model at point b


marqLevAlg documentation built on March 31, 2023, 6:33 p.m.