Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mixSQP

Estimate mixture proportions of a mixture model using mix-SQP algorithm.


Description

Estimate mixture proportions of a mixture model using mix-SQP algorithm.

Usage

mixSQP(matrix_lik, prior, pi_init = NULL, control = list(), weights = NULL)

Arguments

matrix_lik

A matrix containing the conditional likelihood values, possibly normalized.

prior

A vector of the parameters of the Dirichlet prior on the mixture weights.

pi_init

The initial estimate of the mixture weights.

control

A list of settings for the mix-SQP optimization algorithm; see mixsqp for details.

weights

The weights to be assigned to the observations. Must be a vector of length equal the number of rows of matrix_lik. If weights = NULL, all observations are assigned the same weight.

Value

A list object including the estimates (pihat) and a flag (control) indicating convergence success or failure.


ashr

Methods for Adaptive Shrinkage, using Empirical Bayes

v2.2-47
GPL (>= 3)
Authors
Matthew Stephens [aut], Peter Carbonetto [aut, cre], Chaoxing Dai [ctb], David Gerard [aut], Mengyin Lu [aut], Lei Sun [aut], Jason Willwerscheid [aut], Nan Xiao [aut], Mazon Zeng [ctb]
Initial release
2020-02-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.