Learn R Programming

gettingtothebottom (version 3.2)

makeY: MM Algorithm - Make Y

Description

makeY Function for making the Y matrix

Usage

makeY(X, Z, omega)

Arguments

X
Matrix containing observed entries
Z
Matrix containing last iterates
omega
Vector containing indices of unobserved entries (by column)

Examples

Run this code
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)

Run the code above in your browser using DataLab