| is.smm | R Documentation |
smmis.smm returns TRUE if x is an object of class smm.
is.smm(x)
x |
An arbitrary R object. |
is.smm returns TRUE or FALSE depending on whether x is an
object of class smm or not.
states <- c("a", "b", "c")
ptrans <- matrix(c(0, 0.6, 0.4,
0.5, 0, 0.5,
0.7, 0.3, 0), nrow = 3, byrow = TRUE)
param <- matrix(c(0.3, 2, 0.6,
NA, NA, 0.8), nrow = 3)
x <- smmparametric(states = states, init = c(1/3, 1/3, 1/3),
ptrans = ptrans, type.sojourn = "fi",
distr = c("geom", "pois", "dweibull"), param = param)
is.smm(x)
is.smm("a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.