Learn R Programming

CorrBin (version 1.3)

soControl: Control values for order-constrained fit

Description

The values supplied in the function call replace the defaults and a list with all possible arguments is returned. The returned list is used as the control argument to the mc.est, SO.LRT, and SO.trend.test functions.

Usage

soControl(method = c("ISDM", "EM"), eps = 0.005, max.iter = 5000, max.directions = 0, 
           start = ifelse(method == "ISDM", "H0", "uniform"), verbose = FALSE)

Arguments

method
a string specifying the maximization method
eps
a numeric value giving the maximum absolute error in the log-likelihood
max.iter
an interger specifying the maximal number of iterations
max.directions
an integer giving the maximal number of directions considered at one step of the ISDM method. If zero or negative, it is set to the number of non-empty cells. A value of 1 corresponds to the VDM algorithm.
start
a string specifying the starting setup of the mixing distribution; "H0" puts weight only on constant vectors (corresponding to the null hypothesis of no change), "uniform" puts equal weight on all elements. Only a "uniform" start can be used for
verbose
a logical value; if TRUE details of the optimization are shown.

Value

  • a list with components for each of the possible arguments.

See Also

mc.est, SO.LRT, SO.trend.test

Examples

Run this code
# decrease the maximum number iterations and
# request the "EM" algorithm
 soControl(method="EM", max.iter=100)

Run the code above in your browser using DataLab