Stacking a matrix to a vector

Calculate weight for each subject in estimating the mean and covariance matrix.

1 | ```
rsem.weight(x, varphi, mu0, sig0)
``` |

`x` |
Data |

`varphi` |
Downweight rate. |

`mu0` |
Robust mean |

`sig0` |
Robust covariance matrix. |

`w1` |
Weight for robust mean estimates |

`w2` |
Weight for robust covariance estimates |

Zhiyong Zhang and Ke-Hai Yuan

Yuan, K.-H., & Zhang, Z. (2012). Robust Structural Equation Modeling with Missing Data and Auxiliary Variables. Psychometrika, 77(4), 803-826.

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.