This is the main computation engine wrapped by opsr.fit.
loglik_cpp(theta, W, X, Y, weights, nReg, nThreads)Numeric vector of (weighted) log-likelihood contributions.
named coefficient vector as parsed from formula interface opsr.
list of matrices with explanatory variables for selection process for each regime.
list of matrices with expalanatory varialbes for outcome process for each regime.
list of vectors with continuous outcomes for each regime.
vector of weights. See also opsr.
integer number of regimes.
number of threads to be used by OpenMP (should be max. nReg).
opsr.fit, loglik_R