digram.object: Create DIGRAM Object

View source: R/digram.object.R

digram.objectR Documentation

Create DIGRAM Object

Description

Create a digram.object.

Usage

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="")

Arguments

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

Value

Returns a digram.object

Author(s)

Jeppe Bundsgaard jebu@edu.au.dk

References

Kreiner, S. (2003). Introduction to DIGRAM. Dept. of Biostatistics, University of Copenhagen.

Examples

library(iarm)
do<-digram.object(project = "desc2",data = desc2,variables = c(5:14,2:4,1),recursive.structure = c(10,13))

jeppebundsgaard/RDigram documentation built on Oct. 29, 2023, 7:15 p.m.