Learn R Programming

gettingtothebottom (version 3.2)

diff_norm: MM Algorithm - Normed Difference

Description

diff_norm Function for finding the normed difference between two matrices based on vector containing indices of differing elements

Usage

diff_norm(X, Z, omega)

Arguments

X
Original data matrix
Z
Model matrix for comparison
omega
Set of unobserved indices

Examples

Run this code
Z <- matrix(rnorm(9,0,1),3,3)
X <- matrix(rnorm(9,0,2),3,3)
omega <- c(2,5,6)

diff_norm(X,Z,omega)

Run the code above in your browser using DataLab