rvmixed {rv}R Documentation

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

Details

Internally random factors are integer-valued just like regular factors in R.

Value

rvmixed: an rvmixed object.
is.rvmixed: TRUE or FALSE.
as.rv.rvmixed: an rv object.
as.rvmixed.rv: an rvmixed object.

Note

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

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

See Also

Examples

  #

[Package rv version 0.949 Index]