is.constant(x)
## S3 method for class 'rv':
is.constant(x)
## S3 method for class 'default':
is.constant(x)
as.constant(x)
## S3 method for class 'rv':
as.constant(x)
Arguments
x
an object, random variable (rv) or not
Details
is.constant returns TRUE
for each component of the argument object
if the implied variance (sample variance of the simulations) is zero
or if there is only one simulation (that is, the variable is ``constant").
References
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.