grpintprob {mixdist} | R Documentation |
Compute probabilities of an observation falling into a grouping interval when given component distribution which the observation comes from.
grpintprob(mixdat, mixpar, dist, constr)
mixdat |
a data frame containing grouped data, whose first column should be right boundaries of grouping intervals where the first and last intervals are open-ended; whose second column should consist of the frequencies indicating numbers of observations falling into each interval. |
mixpar |
a data frame containing the parameter values of component distributions, which are, in order, the proportions, means, and standard deviations. |
dist |
the distribution of components, it can be one of
|
constr |
a list of constraints on parameters of component distributions. |
It produces a matrix, whose each column contains the probabilities of the observations from one component falling into each grouping interval.
data(bindat)
data(binpar)
grpintprob(bindat, binpar, "binom", mixconstr(consigma = "BINOM", size = c(20, 20, 20, 20)))