Usage
simul_fMM(n, G, Ydist="gaussian", Y_mu, Y_sd, nclass = "auto",
beta=FALSE, Xdist=NULL, X_mu=NULL, X_sd=NULL,
n.Id=NULL, Id_sd=NULL, noise_sd=NULL,
display_Y=TRUE, display_X=TRUE, window=FALSE,
filename="calc-echantillon", width=1000, height=700, path=NULL, unit="px", res=NA)
Arguments
n
The number of observation to simulate. interger
.
G
The number of groups to be considered for the mixture. integer
.
Ydist
The distribution of the observations. character vector[G]
. Must contains only : "unif"
, "unif_segment"
, "gaussian"
, "Gamma"
or "Beta"
.
Y_mu
The expected value of each group. numeric vector[G]
.
Y_sd
The standard deviation of each group. numeric vector[G]
.
nclass
The number of observation by class for the histogram. integer
.
beta
Should a concomitant model be considered ? logical
.
Xdist
The distribution of the concomitant variable. character vector[G]
. Must contains only : "unif"
, "gaussian"
, "Gamma"
.
X_mu
The expected value of the concomitant varible for each group. numeric vector[G]
.
n.Id
The number of patient to be considered. numeric
.
Id_sd
The standard deviation of the random effect. numeric
.
X_sd
The standard deviation of the concomitant varible for each group. numeric vector[G]
.
noise_sd
The standard deviation of the noise. numeric
. NULL
indicates no noise.
display_Y
Should the graphics representing the Y distribution be displayed. logical
.
display_X
Should the graphics representing the X distribution be displayed. logical
.
window
Display the graphics in the current graphics device (F
), in a new device (T
), save it in a png/eps/svg file ("png"
/ "esp"
/ "png"
). NULL
indicates no display.
filename
Name of the file (without the extension) where the plot should be saved. character
. Ignored if window is not png/eps/svg.
width
the width of the device. numeric
. Ignored if window is not png/eps/svg.
height
the width of the device. numeric
. Ignored if window is not png/eps/svg.
path
the directory where the plot file will be created. character. Default is NULL
corresponding to the current working directory.
unit
the units in which height
and width
are given. Can be "px"
, "in"
, "cm"
or "mm"
. Default is "px"
.
res
the nominal resolution in ppi which will be recorded in the bitmap file, if a positive integer. numeric. Default is NA
.