conData | R Documentation |
Removes not binary columns from multivariate time series data and calculates a table of relative frequency and auto-dependency for each binary variable
conData(data)
data |
Binary time-points-by-variable matrix |
A conData-object including:
data
Binary data in time points to variable format.
probs
Table of relative frequency and auto-dependence for each variable.
varNames
The names of all variables.
ExampleData <- cbind(rep(c(0,1),100), rep(c(0,0,0,0,0,1,1,1,1,1),20), c( rep(c(0,0,0,1,1),20), rep(c(0,1,1,1,1),20) ), ifelse(rnorm(200,0,1)<0.95,1,0), c( ifelse(rnorm(100,0,1)<0.7,1,0), ifelse(rnorm(100,0,1)<0.7,0,1) ), ifelse(rnorm(200,0,1)<(-0.98),1,0)) colnames(ExampleData) <- c('Var 1','Var 2','Var 3', 'Var 4','Var 5','Var 6') conData(ExampleData) data(SymptomData) Sdata <- conData(SymptomData) Sdata$probs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.