Learn R Programming

CorReg (version 1.1.1)

Terminator: Destructing values to have missing ones

Description

Destructing values to have missing ones

Usage

Terminator(target = NULL, wrath = 0.1, diag = 0, Z = NULL)

Arguments

target
the dataset (matrix or data.frame) in which missing values will be made
wrath
the ratio of missing values in the output
diag
if =1 it creates a diagonal band of missing values (no complete line, no complete column, but not too much missing values)
Z
adjacency matrix to coerce a maximum of 1 missing value per sub-regression for each individual

Value

the matrix with missing values.

Examples

Run this code
   ## Not run: 
#   rm(list=ls())#clean the workspace
#   
#    data<-mtcars
#    require(CorReg)
#   datamiss=Terminator(target = data,wrath=0.05)#5% of missing values
#   showdata(datamiss)#plot positions of the missing values
#   datamiss=Terminator(target = data,diag=1)#diag of missing values
#   showdata(datamiss)#plot positions of the missing values (no full individuals, no full variable)
#     ## End(Not run)

Run the code above in your browser using DataLab