Creates or tests for objects of type "rvfactor".
# S3 method for rvfactor
print(x, all.levels = FALSE, ...)
rvfactor(x, ...)
# S3 method for default
rvfactor(x, levels = NULL, ...)object to be coerced or tested.
logical; whether to print all levels or not (see below for details)
other arguments
factor levels (labels for the levels)
rvfactor: an rvfactor object.
is.rvfactor: TRUE or FALSE.
as.rv.rvfactor: an rv object.
as.rvfactor.rv: an rvfactor object.
Internally random factors are integer-valued just like regular factors in R.
The number of levels to print when all.levels==FALSE can be set by
rvpar(max.levels=...). By default this is set to 10.
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv").