groupstats: Estimate Parameters of One-Component Mixture Distribution

Description Usage Arguments Value See Also Examples

View source: R/groupstats.R

Description

groupstats is a function which estimates the proportion, mean and standard deviation for a mixture distribution with one component.

Usage

1
groupstats(mixdat)

Arguments

mixdat

A data frame containing grouped data, whose first column should be right boundaries of grouping intervals where the first and last intervals are open-ended; whose second column should consist of the frequencies indicating numbers of observations falling into each interval.

Value

A list containing the following components:

pi

the value is 1 because of only one component.

mu

the estimated mean of mixdat.

sigma

the estimated standard deviation of mixdat.

See Also

mixgroup for grouping data, mixparam for constructing starting values of parameters.

Examples

1
2

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

Related to groupstats in mixdist...