Category: Rstat

Why Vectorize?

In the post (, I briefly introduced the idea of vectorization and potential use cases. One might be wondering why we even need the Vectorize() function given the fact that...continue reading.

Playing Map() and Reduce() in R – Subsetting

In the previous post (, I’ve shown how to employ the MapReduce when calculating by-group statistics. Actually, the same Divide-n-Conquer strategy can be applicable to other use cases, one of...continue reading.

More Flexible Ordinal Outcome Models

In the previous post (, we’ve shown alternative models for ordinal outcomes in addition to commonly used Cumulative Logit models under the proportional odds assumption, which are also known as...continue reading.

Linear programming in R

Linear programming is a technique to solve optimization problems whose constraints and outcome are represented by linear relationships.Simply put, linear programming allows to solve problems of the following kind:Maximize/minimize $\hat...continue reading.