Learn R Programming

heemod (version 0.3.3)

define_correlation: Define a Correlation Structure for Probabilistic Uncertainty Analysis

Description

Not all correlation need to be specified for all variable combinations, unspecified correlations are assumed to be 0.

Usage

define_correlation(...)

Arguments

...
A list of parameter names and correlation coeficients of the form var1, var2, cor(var1, var2), var3, var4, cor(var3, var4), ...

Value

An object of class correlation_matrix.

Examples

Run this code

cm <- define_correlation(
    var1, var2, .4,
    var1, var3, -.2,
    var2, var3, .1
  )

Run the code above in your browser using DataLab