Learn R Programming

StagedChoiceSplineMix (version 1.0.0)

gen.init: Generates initial values for mixtures of logistic regressions

Description

A sub-function of StagedChoiceSplineMix. This function generates initial values for mixtures of logistic regressions. This function is used if starting points for parameters are not specified by the user or when the EM algorithm needs to be initialized due to errors.

Usage

gen.init(y, x, k, er)

Arguments

y
See StagedChoiceSplineMix for details.
x
See StagedChoiceSplineMix for details.
k
See StagedChoiceSplineMix for details.
er
The total number of errors. See StagedChoiceSplineMix for details.

See Also

StagedChoiceSplineMix "mixtools" package version 1.0.3