Skip to contents

Simulate a loss of data points within a full study data obtained within I clusters and observed over K time points

Usage

Data.loss.SWD(data.all, I, K, B = "0", C = 0, D = 0)

Arguments

data.all

given data of a study (can be simulated or obtained)

I

Number of clusters within the study

K

Number of time points within the study

B

Type of cluster loss: 0 = No cluster loss, 1 = Cluster missing at random, 2 = Cluster is missing at beginning, 3 = Cluster is missing at end of the study

C

Number of clusters which getting lost

D

Number of individual loss (chosen randomly from all individuals within the study)

Value

Matrix of data which is remained after data loss