conMx {ConNEcT} | R Documentation |

## Calculate contingency measure values of a (lagged) time series matrix

### Description

Calculate contingency measure values of a (lagged) time series matrix

### Usage

```
conMx(data, data2 = NULL, lag = 0, conFun)
```

### Arguments

`data` |
Binary time-points-by-variable matrix |

`data2` |
Second binary time-points-by-variable matrix (optional) |

`lag` |
Non-negative integer indicating how many time points the second variable is lagged (default 0) |

`conFun` |
Contingency measure function (calculating the contingency value between two binary vectors). Built in: funPropAgree, funClassJacc, funKappa, funCorrJacc, funOdds, funLogOdds, funPhiCC |

### Value

list with two elements:

`value`

Matrix of pairwise calculated contingency measures

`para`

Parameter settings `lag`

, `funName`

and `varNames`

### Examples

```
conMx(cbind(c(1,0,1,0,1,0,1),c(1,1,1,1,0,0,0)),lag=1,conFun=funCorrJacc)
```

[Package

*ConNEcT*version 0.7.27 Index]