Learn R Programming

glmmrBase (version 0.2.5)

gen_sigma_approx: Generates an approximation to the covariance of y

Description

Generates a first-order approximation to the covariance matrix of y based on the marginal quasi-likelihood. This approximation is exact for the Gaussian-identity model. Used internally by the Model class.

Usage

gen_sigma_approx(xb, Z, D, family, link, var_par, attenuate, qlik = TRUE)

Value

A matrix

Arguments

xb

Vector of values of the linear predictor

Z

Random effects design matrix

D

Covariance matrix of the random effects

family

String specifying the family

link

String specifying the link function

var_par

Value of the optional scale parameter

attenuate

Logical indicating whether to use "attenuated" values of the linear predictor

qlik

Not used.