View source: R/digram.object.R
digram.object | R Documentation |
Create a digram.object.
digram.object(project=NULL,data=data.frame(),variables=colnames(data),filter.conditions=data.frame(variable.number=numeric(0),min=numeric(0),max=numeric(0)),recursive.structure=c(),comments="")
project |
The name of the DIGRAM project |
data |
The data.frame or matrix with the data |
variables |
A vector of column names or numbers from the dataset to include in the recoded dataset (the order matters in the recoded data) or a list of variables each element in the form list(variable.name="",variable.label="",ncat=0,category.names=c(),variable.type=c("nominal","ordinal"),minimum=0,maximum=1,cutpoints=c()) |
filter.conditions |
A data.frame with three columns: variable.number, max, and min. Only cases, for which all values of filter variables belong to the intervals defined by the corresponding minimum and maximum values (both included), will be used in the analysis. |
recursive.structure |
A vector of cutpoints to define the recursive blocks |
comments |
A string |
Returns a digram.object
Jeppe Bundsgaard jebu@edu.au.dk
Kreiner, S. (2003). Introduction to DIGRAM. Dept. of Biostatistics, University of Copenhagen.
library(iarm)
do<-digram.object(project = "desc2",data = desc2,variables = c(5:14,2:4,1),recursive.structure = c(10,13))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.