lss.ampute: lss.ampute

Description Usage Arguments Value Author(s)

Description

Create and ampute a longitudinal dataset

Usage

1
2
lss.ampute(n, time, mean, sd, sd.e, perc.up, perc.zero, perc.down, perc.ampute,
  ampute = "mcar", set.seed = NULL)

Arguments

n

It's the number of record (subjects).

time

It's the number of longitudinal mesurements.

mean

It's the mean for the first longitudinal mesurements.

sd

It's the standard deviation for the first mesurment.

sd.e

It's the error on single mesurements.

perc.up

It's the percentage (0.00 to 1.00) of the positive trend longitudinal mesurements.

perc.zero

It's the percentage (0.00 to 1.00) of the zero trend longitudinal mesurements.

perc.down

It's the percentage (0.00 to 1.00) of the negative trend longitudinal mesurements.

perc.ampute

It's the percentage of missing data (after amputation)

ampute

It's the type of amputation methods (default it's "mcar"): "mcar", "mar" and "mnar" are allowed.

set.seed

Default it's NULL, but it could be set as you prefer.

Value

$data It's the database with real values,

$data.ampute It's the database with missing data.

Author(s)

Lorenzo Querci <[email protected]>


helpstatanalysis/mvls documentation built on May 13, 2019, 3 a.m.