funPropAgree {ConNEcT} | R Documentation |

## Calculate the proportion of agreement between two vectors

### Description

Calculate the proportion of agreement between two vectors

### Usage

```
funPropAgree(vec1, vec2)
```

### Arguments

`vec1` |
Vector of binary time series (no missing values) |

`vec2` |
Vector of binary time series (equal length as vec1, no missing values) |

### Value

list with two elements

`value`

of the proportion of agreement and

`funName`

name of the function

### Examples

```
data1 <- rep(c(1,0,1,1),25)
data2 <- ifelse(rnorm(100,0,1)<0.7,0,1)
funPropAgree(data1,data2)
```

[Package

*ConNEcT*version 0.7.27 Index]