Learn R Programming

pim (version 2.0.2)

classes: Extract information from pim.environment and pim.poset objects

Description

These functions serve to extract the information contained in the objects of class pim.environment and pim.poset.

Usage

classes(x)

# S4 method for pim.environment classes(x)

# S4 method for pim.environment names(x)

# S4 method for pim.poset names(x)

compare(x)

# S4 method for pim.environment compare(x)

# S4 method for pim.poset compare(x)

model(object, ...)

# S4 method for pim model(object)

# S4 method for pim.summary model(object)

link(object, ...)

# S4 method for pim link(object)

# S4 method for pim.summary link(object)

Arguments

x

an object of class pim.environment or pim.poset

object

an object of class pim or pim.summary

...

arguments passed to and from other methods.

Value

classes(): A named vector with the classes of the data contained in the pim.environment

names(): For an object of class pim.environment the names of the variables in the object. For an object of class pim.poset, the name of the poset functions inside the environment

compare(): A character value indicating how the comparison is defined in a pim.poset object, or the poset-slot of a pim.environment object respectively.

model(): a character value that displays the type of model (difference, marginal, regular or customized)

link(): a character value that displays the type of link (difference, marginal, regular or customized)

See Also

nobs, poset, is.complete, pim.environment-class, pim.poset-class, pim-class, pim.summary-class

Examples

Run this code
# NOT RUN {
data(DysData)
DysPimEnv <- new.pim.env(DysData,poset=TRUE)
classes(DysPimEnv)
names(DysPimEnv)
compare(DysPimEnv)

themodel <- pim(SPC_D2 ~ Chemo, data = DysData, model = 'difference')
model(themodel)
thesummary <- summary(themodel)
model(thesummary)

# }

Run the code above in your browser using DataLab