PartitionData: Partition Data

View source: R/BAT.R

PartitionDataR Documentation

Partition Data

Description

Partition y and X according to the missingness pattern of g.

Usage

PartitionData(e, g, X)

Arguments

e

Numeric residual vector.

g

Genotype vector.

X

Model matrix of covariates.

Value

List containing:

  • "g_obs", observed genotype vector.

  • "X_obs", covariates for subjects with observed genotypes.

  • "X_mis", covariates for subjects with missing genotypes.

  • "e_obs", residuals for subjects with observed genotypes.


RNOmni documentation built on Sept. 11, 2023, 9:07 a.m.