A detailed description of the SQuID model and its sampling design is provided on the SQuID app (run SQuID app with squidApp
). Reading the SQuID documentation on the SQuID app is prerequisite to use properly the SQuID R function.
Tmax
(default 1): positive integer
; the duration of the simulation (number of time steps).
NP
(default 1): positive integer
; the number of replicated populations. The replicated populations are generated independently using the same simulation design that has been initially inputted by the user. Note that data from different populations will be saved in the same output file that you could later use to run statistical analyses.
NI
(default 1): positive integer
; the number of individuals in each sampled population. NI
must be divisible by the number of higher-level groups (NG
).
NT
(default 1): positive integer
; the number of traits for each individual. SQuID allows a maximum of 2 traits.
NG
(default 1): positive integer
; the number of higher-level groups. NG
must be lower than the number of individuals NI
.
X1_state
(default FALSE
): logical
; if TRUE
, an environmental effect x1 will be added to the model equation.
X1_sto_state
(default FALSE
): logical
; if TRUE
, a stochastic environmental effect will be added to the environmental effect x1. The stochastic environmental effect values follow a normal distribution with a mean of 0 and a variance of X1_sto_V
.
X1_sto_shared
(default TRUE
): logical; if TRUE
, the stochastic environmental effect included in the environmental effect x1 will be shared between individuals. If FALSE
, each individual will experience a different stochastic environmental effect x1 (i.e. a new stochastic environmental effect is generated for each individual).
X1_sto_V
(default 1): numeric
; the variance used to generate the normally distributed stochastic environmental effect x1.
X1_sto_autocor_state
(default FALSE
): logical
; if TRUE
, an autocorrelation effect will be added to the stochastic environmental effect x1.
X1_sto_corr
(default 0): numeric
; the correlation value ranging from 0 to 1 that characterizes the magnitude of the temporal autocorrelation between two consecutive time steps.
X1_lin_state
(default FALSE
): logical
; if TRUE
, a linear trend will be added to the environmental effect x1.
X1_lin_shared
(default TRUE
): logical
; if TRUE
, the linear trend included in the environmental effect x1 will be shared between individuals. If FALSE
, each individual will experience a different linear trend within the environmental effect x1. A different linear trend is generated for each individual by varying the intercept and the slope of the linear equation. The variation in intercepts and slopes following a normal distribution with means X1_lin_intercept
, X1_lin_slope
and variance X1_lin_V
.
X1_lin_intercept
(default 0): numeric
; the intercept of the linear trend included into the environmental effect x1.
X1_lin_slope
(default 1): numeric
; the slope of the linear trend included into the environmental effect x1.
X1_lin_V
(default 1): numeric
; the variance used to generate different (unshared) linear trend effect for each individual within the environmental effect x1.
X1_cyc_state
(default FALSE
): logical
; if TRUE
, a cyclic trend will be added the environmental effect x1.
X1_cyc_shared
(default TRUE
): logical
; if TRUE
, the cyclic trend for environmental effect x1 will be shared between individuals. If FALSE
, each individual will experience a different cyclic trend for environmental effect x1. A new cyclic trend is generated for each individual by varying the amplitude, the period, the horizontal shift and the vertical shift of the cyclic equation following a normal distribution where the mean is the parameter value itself and the variance is X1_cyc_V
.
X1_cyc_amplitude
(default 10): positive numeric
; the amplitude of the cyclic trend for environmental effect x1.
X1_cyc_period
(default 10): positive numeric
; the period of the cyclic trend for the environmental effect x1.
X1_cyc_Hshift
(default 0): positive numeric
; the horizontal shift of the cyclic trend for environmental effect x1.
X1_cyc_Vshift
(default 0): positive numeric
; the vertical shift of the cyclic trend for environmental effect x1.
X1_cyc_V
(default 0): numeric
; the variance used to generate different (unshared) cyclic trends for each individual in the environmental effect x1.
X2_state
(default FALSE
): logical
; if TRUE
, an environmental effect x2 will be added to the model equation.
X2_sto_state
(default FALSE
): logical
; if TRUE
, a stochastic environmental effect will be added to the environmental effect x2. The stochastic environmental effect values follow a normal distribution with mean of 0 and a variance of X2_sto_V
.
X2_sto_shared
(default TRUE
): logical
; if TRUE
, the stochastic environmental effect included in the environmental effect x2 will be shared between individuals. If FALSE
, each individual will experience a different stochastic environmental effect x2 (i.e. a new stochastic environmental effect is generated for each individual).
X2_sto_V
(default 1): numeric
; the variance for the normally distributed stochastic environmental effect x2.
X2_sto_autocor_state
(default FALSE
): logical
; if TRUE
, an autocorrelation effect will be added to the stochastic environmental effect x2.
X2_sto_corr
(default 0): numeric
; the correlation value ranging from 0 to 1 that characterizes the magnitude of the temporal autocorrelation between two consecutive time steps.
X2_lin_state
(default FALSE
): logical
; if TRUE
, a linear trend will be added to the environmental effect x2.
X2_lin_shared
(default TRUE
): logical
; if TRUE
, the linear trend included in the environmental effect x2 will be shared between individuals. If FALSE
, each individual will experience a different linear trend within the environmental effect x2. A new linear trend is generated for each individual by varying the intercept and the slope of the linear equation. The variation in intercepts and slopes follow a normal distribution with means X2_lin_intercept
, X2_lin_slope
and variance X2_lin_V
.
X2_lin_intercept
(default 0): numeric
; the intercept of the linear trend for environmental effect x2.
X2_lin_slope
(default 1): numeric
; the slope of the linear trend for environmental effect x2.
X2_lin_V
(default 1): numeric
; the variance used to generate different (unshared) linear trend effect for each individual's environmental effect x2.
X2_cyc_state
(default FALSE
): logical
; if TRUE
, a cyclic trend will be added the environmental effect x2.
X2_cyc_shared
(default TRUE
): logical
; if TRUE
, the cyclic trend included in the environmental effect x2 will be shared between individuals. If FALSE
, each individual will experience a different cyclic trend for the environmental effect x2. A new cyclic trend is generated for each individual by varying the amplitude, the period, the horizontal shift and the vertical shift of the cyclic equation following a normal distribution where the mean is the parameter value itself and the variance is X2_cyc_V
.
X2_cyc_amplitude
(default 10): positive numeric
; the amplitude of the cyclic trend included into the environmental effect x2.
X2_cyc_period
(default 10): positive numeric
; the period of the cyclic trend for environmental effect x2.
X2_cyc_Hshift
(default 0): positive numeric
; the horizontal shift of the cyclic trend for environmental effect x2.
X2_cyc_Vshift
(default 0): positive numeric
; the vertical shift of the cyclic trend for environmental effect x2.
X2_cyc_V
(default 0): numeric
; the variance used to generate different (unshared) cyclic trend effect for each individual within the environmental effect x2.
X_Interaction
(default FALSE
): logical
; if TRUE
, the environmental effect x1*x2 representing the interaction between the environmental effect x1 and the environmental effect x2 will be added to the model equation.
B
(default c(0,0,0,0)
): numeric vector
; the population mean values. When the number of trait is set to 1, the length of the vector is 4. The vector elements are respectively the population intercept (b0), the population response to environmental influences x1 (fixed slope; b1), the population response to environmental influences x2 (fixed slope; b2) and the population response interaction between environmental influences x1 and x2 (fixed slope; b12). If the number of trait is set to 2, the length of the vector is doubled (len=8) and the second half corresponds to the population mean values associated with the second trait.
Vind
(default matrix(0, nrow=4, ncol=4)
): square, positive definite matrix
or lower triangular matrix
; the individual variance/correlation matrix. Variances are positive numeric
numbers and correlations are numeric
numbers ranged between -1 and 1. Variances are along the matrix diagonal and correlation values below the matrix diagonal. When the number of trait is set to 1, the dimension of the matrix is 4 rows by 4 columns (4x4) and the diagonal elements are respectively the individual-specific (random) intercept variance (VI), the individual-specific response to an environmental effect x1 (random slope) variance (VS1), the individual-specific response to an environmental effect x2 (random slope) variance (VS2) and the individual-specific response interaction to two environmental effects x1 and x2 (random slopes) variance (VS12). When the number of trait is set to 2, the dimension of the matrix is doubled (8x8) where the second half of the diagonal is the individual variances (intercept and slopes) of the second trait. Note that it is possible to set correlation relationships between random effects within and/or among traits.
Ve
(default 0): positive numeric
; the measurement error variance.
VG
(default 0): positive numeric
; the high-level grouping variance.
NR
(default 1): positive integer
; the average number of records sampled per individual.
Vhsi
(default 0): numeric
(between 0 and 0.95); the among-individual variance in timing of sampling.
NR_ind
(default TRUE
): logical
; if TRUE
, individuals will be sampled the same number of times.
NR_trait
(default TRUE
): logical
; if TRUE
, traits within individuals will be sampled the same number of times.
ST_ind
(default TRUE
): logical
; if TRUE
, individuals will be sampled at the same time (i.e. recorded simultaneously).
ST_trait
(default TRUE
): logical
; if TRUE
, traits within individuals will be sampled at the same times (i.e. recorded simultaneously).