bindat {mixdist} | R Documentation |
Grouped Binomial Data
Description
We randomly generate four groups of binomial distribution data with
means 4, 8, 12, 16, and corresponding variances 3.2, 4.8, 4.8 and 3.2.
Then we mix the four data groups with 100 observations for each group,
i.e., with equal proportions. After grouping the mixture data, we obtain
the grouped data bindat
.
The bindat
data frame has 21 rows and 2 columns.
Usage
data(bindat)
Format
This data frame contains the following columns:
- x
the boundaries of grouping intervals.
- freq
the frequencies of observation falling into each interval.
Examples
data(bindat)
data(binpar)
plot.mixdata(bindat)
fit <- mix(bindat, binpar, "binom", mixconstr(conpi = "PFX",
fixpi = c(TRUE, TRUE, TRUE, TRUE), consigma = "BINOM", size = c(20, 20, 20, 20)))
fit
plot(fit)
[Package mixdist version 0.5-5 Index]