Learn R Programming

gettingtothebottom (version 3.2)

makeOmega: MM Algorithm - Generate Omega

Description

makeOmega Function for generating omega vector of missing values

Usage

makeOmega(m, n, percent, seed = 123)

Arguments

m
Number of rows in matrix to be generated
n
Number of columns in matrix to be generated
percent
Percent missing in matrix
seed
Random seed

Examples

Run this code
m <- 1000
n <- 1000
percent <- 0.75
omega <- makeOmega(m,n,percent)

Run the code above in your browser using DataLab