Estep: Perform the E-step in the EM algorithm

View source: R/Estep.R

EstepR Documentation

Perform the E-step in the EM algorithm

Description

Perform the E-step in the EM algorithm

Usage

Estep(H, Ic, R1, dead)

Arguments

H

Hazards per individual (in columns)

Ic

Censoring interval per individual, coded as 0/1 (in columns)

R1

Left truncation interval per individual, coded as 0/1 (in columns)

dead

Boolean vector (TRUE is event, FALSE is right censored)

Value

A list with two matrices

Y

Expected probability of event per bin per subject

R

Expected probability of at risk per bin per subject


icpack documentation built on July 2, 2024, 9:06 a.m.