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)

Example output

Warning message:
In sqrt(mu - mu^2/constr$size) : NaNs produced

Parameters:
    pi     mu sigma fixpi size
1 0.25  3.836 1.761  TRUE   20
2 0.25  7.743 2.178  TRUE   20
3 0.25 12.215 2.181  TRUE   20
4 0.25 15.965 1.795  TRUE   20

Distribution:
[1] "binom"

Constraints:
   conpi    conmu consigma 
   "PFX"   "NONE"  "BINOM" 

mixdist documentation built on May 2, 2019, 3:34 p.m.

Related to bindat in mixdist...