testconstr {mixdist} | R Documentation |
Check if constraints on parameters are valid. See the reference for details.
testconstr(mixdat, mixpar, dist, constr)
mixdat |
a data frame containing grouped data, whose first
column should be right boundaries of grouping intervals, whose
second column should consist of the frequencies indicating
numbers of observations falling into each interval. If conditional
data are available, this data frame should have |
mixpar |
a data frame containing the values for parameters 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. See function |
If the constraints are valid, this function will give a
logical value TRUE
. If not, it will give an error
message to illustrate the reason.
Macdonald, P.D.M. and Green, P.E.J. (1988) User's Guide to Program MIX: An Interactive Program for Fitting Mixtures of Distributions. ICHTHUS DATA SYSTEMS.
mixgroup
for grouping data, mixparam
for
organizing the parameter values, mixconstr
for constructing
constraints.
## Not run:
testconstr(pike65, pikepar, "lnorm", constr = mixconstr(consigma = "CCV"))
testconstr(bindat, binpar, "binom", constr = mixconstr())
testconstr(bindat, binpar, "binom", constr = mixconstr(consigma = "BINOM"))
testconstr(bindat, binpar, "pois", constr = mixconstr(conmu = "MEQ", consigma = "POIS"))
## End(Not run)