create.symData {clamix}R Documentation

Creates object symData from a list of data.frames

Description

Creates object symData from a named list of data.frames. Each should data.frame represent one variable of the units.

Usage

create.symData(datalist, type = "pDist", alpha = NULL)

Arguments

datalist

a named list of data.frames. Each data.frame should represent one variable. Data.frames should be named as variables. Each dataframe should have the same number of rows (same number of units).

type

type of symData. “pDist” for probability with absolute total of “rDist” for relative probability (total=1), or “fDist” for frequency data distribution. For some dissimilarities (d4-d6) empirical probabilities have to be positive. With “pDist.KT” and “rDist.KT” we correct probabilities using Krichevsky-Trofimov estimator.

alpha

a vector of weights for each variable (length(alpha) should be the same as number of data.frames). Default NULL - variables have equal weights.

Value

Object symData. Represents a list of

SOs

vector of symbolic objects (class symObject). The transformed dataset.

so

An empty symObject.

namedSO

An empty symObject with names for categories of each variable.

alpha

A vector of weights

type

A type of symData. See the argument above.

Author(s)

Natasa Kejzar

See Also

summary.symData, print.symObject, empty.symObject

Examples

data(popul06f)
data(popul06m)
datalist <- list("M"=popul06f,"F"=popul06m)
dataset <- create.symData(datalist,"fDist")
summary(dataset)

[Package clamix version 1.03 Index]