pollinate_ML {emery} | R Documentation |
Generate seed values for EM algorithm
Description
pollinate_ML()
is a general helper function which can be used to generate starting
values, i.e. seeds, for the estimate_ML()
function from a multi-method data set.
Usage
pollinate_ML(type = c("binary", "ordinal", "continuous"), data, ...)
pollinate_ML_binary(data, ...)
pollinate_ML_ordinal(
data,
n_level = NULL,
threshold_level = ceiling(n_level/2),
level_names = NULL
)
pollinate_ML_continuous(
data,
prev = 0.5,
q_seeds = c((1 - prev)/2, 1 - (prev/2)),
high_pos = TRUE
)
Arguments
type |
A string specifying the data type of the methods under evaluation. |
data |
An |
... |
Additional arguments |
n_level |
Used for ordinal methods. Integer number of levels each method contains |
threshold_level |
Used for ordinal methods. A value from 1 to |
level_names |
Used for ordinal methods. Optional vector of length |
prev |
A double between 0-1 representing the proportion of positives in the population |
q_seeds |
Used for continuous methods. A vector of length 2 representing the quantiles at which the two groups are assumed to be centered |
high_pos |
Used for continuous methods. A logical indicating whether larger values are considered "positive" |
Value
a list of EM algorithm initialization values