Learn R Programming

mixdist (version 0.5-5)

bindat: 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)

Arguments

Format

This data frame contains the following columns:

x

the boundaries of grouping intervals.

freq

the frequencies of observation falling into each interval.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab