rvmixed: Categorical Random Variables (Random Factors)
Description
Creates or tests for objects of type ``rvmixed".
Usage
rvmixed(x, pointmass=NULL)
is.rvmixed(x)
## S3 method for class 'rv':
is.rvmixed(x)
## S3 method for class 'rvmixed':
as.rv(x)
Arguments
x
object to be coerced or tested.
pointmass
vector of points with point mass probability
...
other arguments
Value
rvmixed: an rvmixed object.
is.rvmixed: TRUE or FALSE.
as.rv.rvmixed: an rv object.
as.rvmixed.rv: an rvmixed object.
Details
Internally random factors are integer-valued just like regular factors in R.
References
Kerman, Jouni and Gelman, Andrew.
Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
http://www.stat.columbia.edu/~kerman/Research/postsim.pdf