compute_t3_j: compute_t3_j computes the individual contribution to the...

Description Usage Arguments Value

Description

compute_t3_j computes the individual contribution to the complete data sufficient statistics of the residual variance.

Usage

1
compute_t3_j(parameters_j, random_coef, fixed_coef, resid_var)

Arguments

parameters_j

A list with unit parameters: y_sq, a scalar of #' the sum of the squared responses; x_sq, a matrix with outer product of the fixed effects covariates; z_sq, a matrix with outer product of the random effects covariates; xy, a vector with the product of fixed effects covariates and the response variable; zy, a vector with the product of random effects covariates and the response variable; xz, product of fixed effects covariates and random effects covariates, a matrix; c_inv, the inverse of the uncertainty matrix of the random effects coefficients, @seealso compute_c_inv.

random_coef

random effects coefficients, @seealso compute_random_coef.

fixed_coef

A vector of fixed effects coefficients.

resid_var

The residual variance, a scalar.

Value

A scalar with unit's contribution to the Complete Data Sufficient Statistics of the residual variance.


L-Ippel/SEMA documentation built on May 30, 2019, 8:23 a.m.