update_z_row_ord: Compute the observed ordinal mean and var in a row

View source: R/row_function.R

update_z_row_ordR Documentation

Compute the observed ordinal mean and var in a row

Description

Iteratively update an estimate of the conditional mean and var at observed ordinal entries

Usage

update_z_row_ord(
  z,
  lower,
  upper,
  obs_indices,
  ord_obs_indices,
  ord_in_obs,
  obs_in_ord,
  f_sigma_oo_inv_z,
  sigma_oo_inv_diag,
  n_update = 1
)

Arguments

z

A row of Z

lower

A row of Lower

upper

A row of Upper

obs_indices

Boolean vector where TRUE indicates observed entries.

ord_obs_indices

Boolean vector where TRUE indicates observed ordinal entries.

ord_in_obs

Boolean vector where TRUE indicates ordinal entries.

obs_in_ord

Boolean vector where TRUE indicates observed ordinal entries.

f_sigma_oo_inv_z

A function computing The matrix-vector product Sigma_{obs, obs}^{-1} * z_{obs}

sigma_oo_inv_diag

The diagonal of Sigma_{obs, obs}^{-1}

n_update

The number of updates, only used when trunc_method is 'Iterative'

Value

A list containing

mean

Mean for observed ordinal

var

Var for observed ordinal


udellgroup/mixedgcImp documentation built on Jan. 25, 2023, 7:55 p.m.