R/f_mlta_nstarts.R

f_mlta_nstarts <- function(S, counts, G, D, nstarts, tol, maxiter, pdGH)
{
  out <- f_mlta(S, counts, G, D, tol, maxiter, pdGH)
  
  if(nstarts > 1){ 
    for(i in 2:nstarts){
      out1 <- f_mlta(S, counts, G, D, tol, maxiter, pdGH)
      if(out1$LL > out$LL) out <- out1
    }
  }
  return(out)
}

Try the lvm4net package in your browser

Any scripts or data that you put into this service are public.

lvm4net documentation built on June 13, 2019, 5:03 p.m.