View source: R/utility_functions.R
| corrUnif | R Documentation |
Constructs a uniform correlation matrix.
corrUnif(rho=0, tfu)
rho |
Correlation parameter. |
tfu |
Follow-up time points, in standardized format from function
|
Returns an s x s correlation matrix. Where s is the number
of occasions (follow-up time points) at which the study outcome is observed.
# Uniform correlation model for outcomes at 3, 6, 12 and 24 months
# Settings for tref argument of standardtfu do not change correlation matrix
corrUnif(0.5, tfuStandard(c(3,6,12,24), tref=c(1,2)))
# Based on correlation 0.5 between outcomes separated by 1 year
corrUnif(0.5, tfuStandard(c(3,6,12,24), tref=c(3,4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.