Internal function required for fitting a mixture of PPCA models.

1 | ```
estep1(Y, Tau, Pi, mu, W, Sig, g, p, reset)
``` |

`Y` |
A N x p data matrix. |

`Tau` |
A N x G matrix of posterior group membership probabilities. |

`Pi` |
A G vector of mixing proportions. |

`mu` |
A p x G matrix containing the mean for each group. |

`W` |
An p x q x G array of loadings for each group. |

`Sig` |
A scalar; the error covariance. |

`g` |
The number of groups currently being fitted. |

`p` |
Number of spectral bins in the NMR spectra. |

`reset` |
Logical indicating computational instability. |

First E step of the AECM algorithm when fitting a mixture of PPCA models. An internal function.

A list containing

`Tau` |
The N x G matrix of posterior group membership probablities. |

`logTau` |
An N x G matrix of the log of the numerator of posterior group membership probablities. |

`reset` |
Logical indicating computational instability. |

An internal function.

Nyamundanda Gift, Isobel Claire Gormley and Lorraine Brennan

Nyamundanda, G., Gormley, I.C. and Brennan, L. (2010) Probabilistic principal components analysis for metabolomic data. Technical report. University College Dublin, Ireland.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.