EStep: E step of the EM algorithm: Calculate the expectation of Q...

Description Usage Arguments Value

View source: R/Estep.R

Description

E step of the EM algorithm: Calculate the expectation of Q function given parameters

Usage

1
EStep(u, pi, mu1, mu2, var1, var2)

Arguments

u

The combined data of (y, x)

pi

The proportion of cell type 1 in all cells

mu1

The estimated (y,x) mean function of cell type 1

mu2

The estimated (y,x) mean function of cell type 2

var1

The estimated (y,x) variance of cell type 1

var2

The estimated (y,x) variance of cell type 2

Value

A list of the 4 elements

Eu1:

The expected value in cell type 1 given the observed (y, x) at the tissue level given input parameters

Eu2:

The expected value in cell type 2 given the observed (y, x) at the tissue level given input parameters

Evar1:

The expected variance-covariance matrix in cell type 1 given the observed (y, x) at the tissue level given input parameters

Evar2:

The expected variance-covariance matrix in cell type 2 given the observed (y, x) at the tissue level given input parameters


JiayiJi/iProMix documentation built on Dec. 18, 2021, 1:30 a.m.