update.beta.coef: update.beta.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 functions updates the fixed effects (imputation) parameters. By drawing them from their normal distribution.

The functions updates the fixed effects (imputation) parameters. By drawing them from their normal distribution.

Usage

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

## S3 method for class 'beta.coef'
update(Z_obs, alpha.new, b.hat.part1, clID_obs, y_obs,
  sigma.y.new, xtx)

Arguments

Z_obs

A data.frame with the random effects variables.

alpha.new

A matrix (with the dimension: number of clusters times number of random effect variables) of cluster specific random effects.

b.hat.part1

The (X'X)^-1 X' matrix.

clID_obs

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

y_obs

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

sigma.y.new

The residual variance (positive numeric).

xtx

The (X'X)^-1 matrix.

Z_obs

A data.frame with the random effects variables.

alpha.new

A matrix (with the dimension: number of clusters times number of random effect variables) of cluster specific random effects.

b.hat.part1

The (X'X)^-1 X' matrix.

clID_obs

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

y_obs

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

sigma.y.new

The residual variance (positive numeric).

xtx

The (X'X)^-1 matrix.

Value

It returns a vector of new fixed effects parameters.

It returns a vector of new fixed effects parameters.


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