update.sigma.y.coef: update.sigma.y.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 residual variance parameter by drawing from a chisquared distribution.

The function updates the residual variance parameter by drawing from a chisquared distribution.

Usage

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

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

Arguments

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.

Z_obs

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

alpha.new

The matrix of cluster specific random effects.

clID_obs

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

n.obs

The number of individuals with an observed 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.

Z_obs

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

alpha.new

The matrix of cluster specific random effects.

clID_obs

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

n.obs

The number of individuals with an observed y.

Value

The numeric residual variance.

The numeric residual variance.


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