Learn R Programming

cTMed (version 1.0.4)

summary.ctmedmed: Summary Method for an Object of Class ctmedmed

Description

Summary Method for an Object of Class ctmedmed

Usage

# S3 method for ctmedmed
summary(object, digits = 4, ...)

Value

Returns a matrix of effects.

Arguments

object

an object of class ctmedmed.

digits

Integer indicating the number of decimal places to display.

...

further arguments.

Author

Ivan Jacob Agaloos Pesigan

Examples

Run this code
phi <- matrix(
  data = c(
    -0.357, 0.771, -0.450,
    0.0, -0.511, 0.729,
    0, 0, -0.693
  ),
  nrow = 3
)
colnames(phi) <- rownames(phi) <- c("x", "m", "y")

# Specific time interval ----------------------------------------------------
med <- Med(
  phi = phi,
  delta_t = 1,
  from = "x",
  to = "y",
  med = "m"
)
summary(med)

# Range of time intervals ---------------------------------------------------
med <- Med(
  phi = phi,
  delta_t = 1:5,
  from = "x",
  to = "y",
  med = "m"
)
summary(med)

Run the code above in your browser using DataLab