
Last chance! 50% off unlimited learning
Sale ends in
Variance-covariance structure where the residuals are independent but may have different variance. Can be stratified on a categorical variable.
IND(formula, var.cluster, var.time, add.time)
An object of class IND
that can be passed to the argument structure
of the lmm
function.
formula indicating variables influencing the residual variance, using either as a multiplicative factor (right hand side) or stratification (left hand side) to model their effect.
[character] cluster variable.
[character] time variable.
Should the default formula (i.e. when NULL
) contain a time effect.
A typical formula would be either ~1
indicating constant variance
or ~time
indicating a time dependent variance.
IND(NULL, var.cluster = "id", var.time = "time", add.time = TRUE)
IND(~1, var.cluster = "id", var.time = "time")
IND(gender~1, var.cluster = "id", var.time = "time")
IND(gender~time, var.cluster = "id", var.time = "time")
IND(~gender+time, var.cluster = "id", var.time = "time")
Run the code above in your browser using DataLab