UN | R Documentation |
Variance-covariance structure where the residuals have time-specific variance and correlation. Can be stratified on a categorical variable.
UN(formula, var.cluster, var.time, add.time)
formula |
formula indicating on which variable to stratify the covariance structure. |
var.cluster |
[character] cluster variable. |
var.time |
[character] time variable. |
add.time |
Should the default formula (i.e. when |
A typical formula would be ~1
, indicating a time-specific variance parameter and a correlation parameter specific to each pair of times.
An object of class UN
that can be passed to the argument structure
of the lmm
function.
UN(NULL, var.cluster = "id", var.time = "time", add.time = TRUE)
UN(~gender, var.cluster = "id", var.time = "time", add.time = TRUE)
UN(gender ~ 1, var.cluster = "id", var.time = "time", add.time = TRUE)
UN(list(~gender,~1), var.cluster = "id", var.time = "time", add.time = TRUE)
UN(list(gender~age,gender~1), var.cluster = "id", var.time = "time", add.time = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.