calc: helper function to be called in '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

It (basically) calculates (Z'Z + sigma.e * sigma.b^-1)^-1 * z' resid.

It (basically) calculates (Z'Z + sigma.e * sigma.b^-1)^-1 * z' resid.

Usage

1
2
3
calc(x, sigma.y.new, sigma.alpha.new.inv)

calc(x, sigma.y.new, sigma.alpha.new.inv)

Arguments

x

A data.frame which is basically cbind(Z_obs, y_obs - X_obs * beta.new).

sigma.y.new

The numeric residual variance.

sigma.alpha.new.inv

The inverse random effects covariance matrix.

x

A data.frame which is basically cbind(Z_obs, y_obs - X_obs * beta.new).

sigma.y.new

The numeric residual variance.

sigma.alpha.new.inv

The inverse random effects covariance matrix.

Value

It returns (for this given cluster) a (cluster specific) random intercept and random slope.

It returns (for this given cluster) a (cluster specific) random intercept and random slope.


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