Learn R Programming

StagedChoiceSplineMix (version 1.0.0)

twostglogitregmixEM: Performs an EM algorithm for mixtures of two-stage logistic regressions

Description

A sub-function of StagedChoiceSplineMix. This function performs an EM algorithm for mixtures of two-stage logistic regressions.

Usage

twostglogitregmixEM(yb = NULL, idb = NULL, yw = NULL, idw = NULL, xb = NULL, xw = NULL, xb.class = NULL, xw.class = NULL, sp.cols = NULL, num.knots = NULL, sp.knots = NULL, betab = NULL, betaw = NULL, lambda = NULL, k = NULL, epsilon = 1e-06, maxit = 500, maxrestarts = 100, maxer = 20, verb = FALSE)

Arguments

yb
The 1st stage binary variable (browsing). See StagedChoiceSplineMix for details.
idb
Corresponding id for yb. See StagedChoiceSplineMix for details.
yw
The 2nd stage binary variable (writing). See StagedChoiceSplineMix for details.
idw
Corresponding id for yw. See StagedChoiceSplineMix for details.
xb
Corresponding covariance matrix for yb. See StagedChoiceSplineMix for details.
xw
Corresponding covariance matrix for yw. See StagedChoiceSplineMix for details.
xb.class
Corresponding latent classes for yb.
xw.class
Corresponding latent classes for yw.
sp.cols
See StagedChoiceSplineMix for details.
num.knots
See StagedChoiceSplineMix for details.
sp.knots
See StagedChoiceSplineMix for details.
betab
See StagedChoiceSplineMix for details.
betaw
See StagedChoiceSplineMix for details.
lambda
See StagedChoiceSplineMix for details.
k
See StagedChoiceSplineMix for details.
epsilon
See StagedChoiceSplineMix for details.
maxit
See StagedChoiceSplineMix for details.
maxrestarts
See StagedChoiceSplineMix for details.
maxer
See StagedChoiceSplineMix for details.
verb
See StagedChoiceSplineMix for details.

See Also

StagedChoiceSplineMix regmixEM