View source: R/print.transiogram.R
print.transiogram | R Documentation |
The function prints transition probabilities given by predict.multi_tpfit
or transiogram
.
## S3 method for class 'transiogram'
print(x, ...)
x |
an object of the class |
... |
further arguments passed to or from other methods. |
Transition probabilities are printed on the screen or other output devices. No values are returned.
Luca Sartore drwolf85@gmail.com
transiogram
, predict.tpfit
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.