getSImputed: Get imputed data

View source: R/get_imputed.R

getSImputedR Documentation

Get imputed data

Description

Get single imputed data by sampling from the posterior distribution of the complete data given the observed data and LRT estimates.

Usage

getSImputed(data.obs, par.est, sf, CE, XW, tau, parallel = T)

Arguments

data.obs

Observed count matrix for endogeneous genes, rows represent genes, columns represent cells

par.est

LRT/EM estimates, using par.DE by default

sf

A vector containing size factors for all cells

CE

A vector containing capture efficiencies for all cells

XW

A matrix containing information for X (cell-type) and W (other covariates)

tau

cell-specific estimates (intcp,slope) that link Beta-Binomial dispersion parameter to the mean expression.

parallel

If TRUE, run in parallel

M

number of imputed values to be generated.

Value

A matrix containing the single imputed data.


cz-ye/DECENT documentation built on Jan. 25, 2023, 5:57 a.m.