Version: 1.2.3
Release Date: 2024-01-30
Authors:
Matthias
Kohl
Required R-Version: >=3.4
Dependencies: requires packages
"methods",
"startupmsg"
available from
CRAN;
as well as packages
"distr"
version >= 1.6 and
"distrEx"
version
>= 0.4-1 by the author of this package
also available from
CRAN;
What is "RandVar" meant for?
This package introduces classes
and methods for random variables (understood as measurable mappings).
It extends (and requires) package
"distr"
and
"distrEx"
.
A random variable has slots domain and range as well as a slot
map; For the derived classes "RealRandVector",
"EuclRandVector"
and "EuclRandMatrix" virtually (not in the OO-Sense :-) every
mathematical operation that is possible in R with numeric variables is
also possible with objects of our class random variable. In particular
groups Math and Arith as well as matrix multiplication . We have
functions to check the compatibility of domains, to get the dimension
of the random variable, and to evaluate it. Together with a
distribution on the domain, we have an expectation as well as a
factorized conditional expectation method.