est_z_row_ord: Compute the observed ordinal mean and cov in a row

View source: R/row_function.R

est_z_row_ordR Documentation

Compute the observed ordinal mean and cov in a row

Description

Estimate the conditional mean and cov at observed ordinal entries through sampling

Usage

est_z_row_ord(
  z,
  lower,
  upper,
  sigma_oo,
  ord_indices = NULL,
  obs_indices = NULL,
  ord_obs_indices = NULL,
  obs_in_ord = NULL,
  ord_in_obs = NULL,
  n_sample = 5000
)

Arguments

z

A row of Z

lower

A row of Lower

upper

A row of Upper

sigma_oo

Sigma_{obs, obs}

ord_indices

Boolean vector where TRUE indicates ordinal entries.

obs_indices

Boolean vector where TRUE indicates observed entries.

ord_obs_indices

Boolean vector where TRUE indicates observed ordinal entries.

obs_in_ord

Boolean vector where TRUE indicates observed ordinal entries.

ord_in_obs

Boolean vector where TRUE indicates ordinal entries.

n_sample

Number of MC samples, only used when trunc_method is 'Sampling'

Value

A list containing

mean

Mean for observed ordinal

cov

Cov for observed ordinal


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