update.alpha.coef: update.alpha.coef

Description Usage Arguments Value

View source: R/hmi_smallfunctions_2016-07-21.R View source: R/hmi_smallfunctions_2016-07-14.R

Description

The function updates the cluster specific random effects by drawing from a multivariate normal distribution (with a unique distribution for every cluster).

The function updates the cluster specific random effects by drawing from a multivariate normal distribution (with a unique distribution for every cluster).

Usage

1
2
3
4
5
6
7
## S3 method for class 'alpha.coef'
update(Z_obs, y_obs, X_obs, beta.new, clID_obs,
  sigma.y.new, sigma.alpha.new.inv)

## S3 method for class 'alpha.coef'
update(Z_obs, y_obs, X_obs, beta.new, clID_obs,
  sigma.y.new, sigma.alpha.new.inv)

Arguments

Z_obs

The random effects data matrix of those observations with an observed value of y.

y_obs

The target variable of those observations with an observed value of y.

X_obs

The fixed effects data matrix of those observations with an observed value of y.

beta.new

The vector of fixed effects parameters.

clID_obs

The cluster ID vector of those observations with an observed value of y.

sigma.y.new

The numeric residual variance.

sigma.alpha.new.inv

The inverse random effects covariance matrix.

Z_obs

The random effects data matrix of those observations with an observed value of y.

y_obs

The target variable of those observations with an observed value of y.

X_obs

The fixed effects data matrix of those observations with an observed value of y.

beta.new

The vector of fixed effects parameters.

clID_obs

The cluster ID vector of those observations with an observed value of y.

sigma.y.new

The numeric residual variance.

sigma.alpha.new.inv

The inverse random effects covariance matrix.

Value

It returns cluster specific random effects.

It returns cluster specific random effects.


matthiasspeidel/hmi documentation built on Aug. 18, 2020, 4:37 p.m.