groupstats: Estimate Parameters of One-Component Mixture Distribution
Description
groupstats is a function which estimates the
proportion, mean and standard deviation for a mixture
distribution with one component.
Usage
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.