dae (version 3.2.25)

print.pstructure: Prints a pstructure.object

Description

Prints a pstructure.object, which is of class pstructure. The df, terms and sources are coerced into a data.frame and printed; the marginality matrix is printed separately.

Usage

# S3 method for pstructure
print(x, which = "all", ...)

Arguments

x

The pstructure.object, which is of class pstructure and is to be printed.

which

A character vector nominating the components of the pstructure.object to print. Must be all or some combination of projectors, marginality, and aliasing.

...

Further arguments passed to print.aliasing.

Author

Chris Brien

See Also

Examples

Run this code
## Generate a data.frame with 4 factors, each with three levels, in standard order
ABCD.lay <- fac.gen(list(A = 3, B = 3, C = 3, D = 3))

## create a pstructure object based on the formula ((A*B)/C)*D
ABCD.struct <- pstructure.formula(~ ((A*B)/C)*D, data =ABCD.lay)

## print the object either using the Method function, the generic function or show
print.pstructure(ABCD.struct)
print(ABCD.struct)
ABCD.struct

Run the code above in your browser using DataLab