Learn R Programming

spMC (version 0.3.15)

is.multi_transiogram: Object test for multi_transiogram class

Description

Function to test if an object is of the class multi_transiogram.

Usage

is.multi_transiogram(object)

Value

A logical value.

Arguments

object

object to be tested.

Author

Luca Sartore drwolf85@gmail.com

Details

The function returns TRUE if and only if its argument is a multi_transiogram object.

See Also

predict.multi_tpfit

Examples

Run this code
# \donttest{
data(ACM)

# Estimate the parameters of a 
# multidimensional MC model
RTm <- multi_tpfit(ACM$MAT3, ACM[, 1:3])

# Generate the matrix of 
# multidimensional lags
lags <- expand.grid(X=-1:1, Y=-1:1, Z=-1:1)
lags <- as.matrix(lags)

# Compute transition probabilities 
# from the multidimensional MC model
TrPr <- predict(RTm, lags)

# Test the object TrPr
is.multi_transiogram(TrPr)
# }

Run the code above in your browser using DataLab