Run qrme from multiple random starting values
and return the fit with the highest log-likelihood. Use this to assess
whether the EM algorithm converges to a unique solution or is sensitive
to starting values.
For each restart, start_sigma is drawn uniformly from
sigma_range, start_mu is drawn from \(N(0, 0.01)\),
and mixture weights start_pi are drawn from a symmetric Dirichlet
(i.e., uniform on the simplex).
Usage
qrme_start_search(
formula,
data,
tau,
n_starts = 10L,
sigma_range = c(0.1, 2),
return_fits = FALSE,
...
)Arguments
- formula
formula for the outcome model (passed to
qrme)- data
data.frame
- tau
quantile levels for QR
- n_starts
number of random restarts (default 10)
- sigma_range
length-2 numeric vector giving the \([\min, \max]\) interval from which
start_sigmais drawn for each component (defaultc(0.1, 2.0))- return_fits
logical; if
TRUEthe fitted qrme objects for all successful restarts are returned (defaultFALSE)- ...
additional arguments passed to
qrmefor every restart (e.g.n_mix,me_distribution,mcmc_draws). Argumentsstart_sigma,start_mu,start_pi, andseare set internally and should not be passed via....