bindat: Grouped Binomial Data

Description Usage Format Examples

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

1

Format

This data frame contains the following columns:

x

the boundaries of grouping intervals.

freq

the frequencies of observation falling into each interval.

Examples

1
2
3
4
5
6
7
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)

mixdist documentation built on May 30, 2017, 7:08 a.m.

Related to bindat in mixdist...