gmData-class {gRbase} | R Documentation |
A common class for representing data. No matter the actual representation of data, the important characteristics are contained in a graphical metadata object.
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.
description
:"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
:"vector"
giving
the names of the levels of the discrete variables. observations
:"dataOrNULL"
containing the data, a pointer to data or NULL if no data are used. signature(from = "data.frame", to = "gmData")
:
Create gmData object from a data.frame. signature(from = "table", to = "gmData")
: Create gmData object from a table. signature(from = "array", to = "gmData")
: Create gmData object from an array. signature(x = "gmData")
: Extract the
description slot from a gmData object. signature(x = "gmData")
: Replace the
description slot from a gmData object. signature(.Object = "gmData")
: Creation of
a gmData object. signature(x = "gmData")
: Extract the
column "latent" from the description slot from a gmData object. signature(x = "gmData")
: Replace the
column "latent" from the description slot from a gmData object. signature(x = "gmData")
: Extract the
column "numberLevels" from the description slot from a gmData object. signature(x = "gmData")
: Replace the
column "numberLevels" from the description slot from a gmData object. signature(x = "gmData")
: Extract the
observations slot from a gmData object. signature(x = "gmData")
: Replace the
observations slot from a gmData object. signature(object = "gmData")
: Print method for
gmData object. signature(x = "gmData")
: Extract the
valueLabels slot from a gmData object. signature(x = "gmData")
: Replace the
valueLabels slot from a gmData object. signature(x = "gmData")
: Extract the
column "varNames" from the description slot from a gmData object. signature(x = "gmData")
: Replace the
column "varNames" from the description slot from a gmData object. signature(x = "gmData")
: Extract the
column "varTypes" from the description slot from a gmData object. signature(x = "gmData")
: Replace the
column "varTypes" from the description slot from a gmData object.
Søren Højsgaard, sorenh@agrsci.dk,
Claus Dethlefsen, dethlef@math.aau.dk
demo(gmData)