Learn R Programming

ConNEcT (version 0.7.27)

conProf: Compare different lags in a contingency profile

Description

Compare different lags in a contingency profile

Usage

conProf(data, maxlag, conFun)

Arguments

data

Binary time-points-by-variable matrix

maxlag

Positive integer indicating how many lags should be investigated

conFun

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

Value

A conProf-object consisting of

value Contingency matrices for different lags

para Parameters including maxlag, funName and varNames

Examples

Run this code
# NOT RUN {
 IntData <- cbind(rep(rep(c(0,0,1,0,1,0,1,0,0,0),each=5),times=5),
                            rep(rep(c(1,0,0,0), each=10), times=25))
           colnames(IntData) <- c('Var1','Var2')
           conProf(IntData,maxlag=10,conFun=funClassJacc)


# }

Run the code above in your browser using DataLab