IND | R Documentation |
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)
formula |
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. |
var.cluster |
[character] cluster variable. |
var.time |
[character] time variable. |
add.time |
Should the default formula (i.e. when |
A typical formula would be either ~1
indicating constant variance
or ~time
indicating a time dependent variance.
An object of class IND
that can be passed to the argument structure
of the lmm
function.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.