makeY: MM Algorithm - Make Y

Description Usage Arguments Author(s) Examples

View source: R/mmalgorithm.R

Description

makeY Function for making the Y matrix

Usage

1
makeY(X, Z, omega)

Arguments

X

Matrix containing observed entries

Z

Matrix containing last iterates

omega

Vector containing indices of unobserved entries (by column)

Author(s)

Jocelyn T. Chi

Examples

1
2
3
4
5
n <- 5
A <- matrix(rnorm(n^2),n,n)
omega <- c(1,5,8,10,16,23)
Z <- Matrix(0,n,n,sparse=TRUE)
makeY(A,Z,omega)

gettingtothebottom documentation built on May 29, 2017, 8:28 p.m.