Usage
gald3d(nbEachClusters=50,time=0:10,varNames=c("V","T"),
functionClusters=list(function(t){c(0,0)},function(t){c(10,10)},function(t){c(10-t,10-t)}),
constantPersonal=function(t){c(rnorm(1,0,2),rnorm(1,0,2))},
functionNoise=function(t){c(rnorm(1,0,2),rnorm(1,0,2))},
decimal=2,percentOfMissing=0)
generateArtificialLongData3d(nbEachClusters=50,time=0:10,varNames=c("V","T"),
functionClusters=list(function(t){c(0,0)},function(t){c(10,10)},function(t){c(10-t,10-t)}),
constantPersonal=function(t){c(rnorm(1,0,2),rnorm(1,0,2))},
functionNoise=function(t){c(rnorm(1,0,2),rnorm(1,0,2))},
decimal=2,percentOfMissing=0)
Arguments
nbEachClusters
[vector(numeric)]
: number of trajectories that each
cluster must contain. If a single
number is given, it is duplicated for all groups.
time
[vector(numeric)]
: time at which measures are made.
varNames
[vector(character)]
: names of the variables.
functionClusters
[list(function)]
: lists the functions
that define the average trajectories of each cluster.
Each functions shall return a vector containing one value for each variable of varNames
.
constantPersonal
[function]
or [list(function)]
: lists the functions
defining the personnal variation between an individual and the mean
trajectories of its cluster. Note that these function should be
constant function (the persona
functionNoise
[function]
or
[list(function)]
: lists the functions
generating the noise of each trajectory within its own cluster.
Each functions shall return a vector containing one value for each variable of varNames
decimal
[numeric]
: number of decimals used to round up values.
percentOfMissing
[numeric]
: percentage (between 0 and 1)
of missing data generated in each cluster. If a single value is
given, it is duplicated for all groups. The missing values are
Missing Completly At Random (MCAR).