gmData-class {gRbase}R Documentation

Class "gmData" graphical meta data

Description

A common class for representing data. No matter the actual representation of data, the important characteristics are contained in a graphical metadata object.

Objects from the Class

Objects can be created by calls of the form new("gmData", varNames, varTypes, numberLevels, latent, valueLabels, observations).

A gmData object contains the abstraction of data into a meta data object including variable names and types etc. However, the actual data might not be present or may be represented by a reference to data, such as a database file. Also, it may be possible to work without data, which may be valuable if the point of interest is in the model alone. Separating the specification of the variables from data has the benefit, that some properties of a model can be investigated without any reference to data, for example decomposability and collapsibility.

Slots

description:
Object of class "data.frame" containing one row for each variable and a column for each property of the variables. The properties include the variable name, the number of levels (for discrete variables), whether the variable is latent or not, and the variable type. The description may be extended by adding columns.
valueLabels:
Object of class "vector" giving the names of the levels of the discrete variables.
observations:
Object of class "dataOrNULL" containing the data, a pointer to data or NULL if no data are used.

Methods

coerce
signature(from = "data.frame", to = "gmData"): Create gmData object from a data.frame.
coerce
signature(from = "table", to = "gmData"): Create gmData object from a table.
coerce
signature(from = "array", to = "gmData"): Create gmData object from an array.
description
signature(x = "gmData"): Extract the description slot from a gmData object.
description<-
signature(x = "gmData"): Replace the description slot from a gmData object.
dynamic.Graph
signature(object = "gmData"): ...
initialize
signature(.Object = "gmData"): Creation of a gmData object.
latent
signature(x = "gmData"): Extract the column "latent" from the description slot from a gmData object.
latent<-
signature(x = "gmData"): Replace the column "latent" from the description slot from a gmData object.
numberLevels
signature(x = "gmData"): Extract the column "numberLevels" from the description slot from a gmData object.
numberLevels<-
signature(x = "gmData"): Replace the column "numberLevels" from the description slot from a gmData object.
observations
signature(x = "gmData"): Extract the observations slot from a gmData object.
observations<-
signature(x = "gmData"): Replace the observations slot from a gmData object.
show
signature(object = "gmData"): Print method for gmData object.
valueLabels
signature(x = "gmData"): Extract the valueLabels slot from a gmData object.
valueLabels<-
signature(x = "gmData"): Replace the valueLabels slot from a gmData object.
varNames
signature(x = "gmData"): Extract the column "varNames" from the description slot from a gmData object.
varNames<-
signature(x = "gmData"): Replace the column "varNames" from the description slot from a gmData object.
varTypes
signature(x = "gmData"): Extract the column "varTypes" from the description slot from a gmData object.
varTypes<-
signature(x = "gmData"): Replace the column "varTypes" from the description slot from a gmData object.

Author(s)

Søren Højsgaard, sorenh@agrsci.dk,
Claus Dethlefsen, dethlef@math.aau.dk

References

~put references to the literature/web site here ~

See Also

demo(gmData)


[Package gRbase version 0.1.13 Index]