Generates an object of class "DiscreteMVDistribution".
"DiscreteMVDistribution"
EmpiricalMVDistribution(data, Symmetry = NoSymmetry())
Object of class "DiscreteMVDistribution"
numeric matrix with data where the rows are interpreted as observations.
you may help R in calculations if you tell it whether the distribution is non-symmetric (default) or symmetric with respect to a center.
Matthias Kohl Matthias.Kohl@stamats.de
The function is a simple utility function providing a wrapper to the generating function DiscreteDistribution.
DiscreteDistribution
Typical usages are
EmpiricalMVDistribution(data)
Identical rows are collapsed to unique support values. If prob is missing, all elements in supp are equally weighted.
prob
supp
DiscreteMVDistribution
## generate some data X <- matrix(rnorm(50), ncol = 5) ## empirical distribution of X D1 <- EmpiricalMVDistribution(data = X) support(D1) r(D1)(10)
Run the code above in your browser using DataCamp Workspace