View source: R/smmparametric.R
| is.smmparametric | R Documentation |
smmparametricis.smmparametric returns TRUE if x is an object of
class smmparametric.
is.smmparametric(x)
x |
An arbitrary R object. |
is.smmparametric returns TRUE or FALSE depending on whether
x is an object of class smmparametric 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.smmparametric(x)
is.smmnonparametric(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.