The initial goal is to reimplement the SAS-Pack for the CMS Hospital Compare Overall Star Rating as posted on https://www.qualitynet.org. During the reimplementation, two major issues have been found:
CMS's SAS Pack, which implements the k-means clustering with ONE iteratrion, failed to converge. This leads to ~ 1/4 hospitals receiving an incorrect star rating.
CMS's Latent Variable Model (LVM), which uses a Gaussian quadrature approximation with 30 qpoints, failed to approach the integral of the objective function. This also leads to hundreds of hospitals receiving an incorrect star rating.
require(devtools); # Install the package devtools if you didn't do so. devtools::install_github("huangrh/rstarating"); devtools::install_github("huangrh/relvm"); devtools::install_github("huangrh/rclus"); require(rstarating); require(relvm); require(rclus)
See https://github.com/huangrh/rstarating
GPL(3)
hydrus is developed in parallel. It runs in less than a minute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.