print.transiogram: Printing Theoretical or Empirical One-dimensional...

View source: R/print.transiogram.R

print.transiogramR Documentation

Printing Theoretical or Empirical One-dimensional Transiograms

Description

The function prints transition probabilities given by predict.multi_tpfit or transiogram.

Usage

## S3 method for class 'transiogram'
print(x, ...)

Arguments

x

an object of the class transiogram, typically with the output of the function predict.tpfit or transiogram.

...

further arguments passed to or from other methods.

Value

Transition probabilities are printed on the screen or other output devices. No values are returned.

Author(s)

Luca Sartore drwolf85@gmail.com

See Also

transiogram, predict.tpfit

Examples


data(ACM)

# Estimate the parameters of a 
# one-dimensional MC model
RTm <- tpfit(ACM$MAT5, ACM[, 1:3], c(0, 0, 1))

# Compute theoretical transition probabilities 
# from the one-dimensional MC model
TTPr <- predict(RTm, lags = 0:2/2)

# Compute empirical transition probabilities 
ETPr <- transiogram(ACM$MAT5, ACM[, 1:3], c(0, 0, 1), 200, 20)

# Print results
print(TTPr)
print(ETPr)

spMC documentation built on May 3, 2023, 9:13 a.m.