rating: S3 Generic Function For Hospital Star Rating

Description Usage Arguments Value See Also

View source: R/rating.R

Description

Hospital star rating from wisorized summary scores.

Usage

1
2
3
4
5
rating(x, method, score_col, iter.max)

## Default S3 method:
rating(x, method = c("rclus2", "rclus", "kmeans", "na"),
  iter.max = 1000)

Arguments

x

Winsorized summary score returned from relvm.

method

Kmean cluster algorithm.

  • kmeans: kmeans clustering.

  • rclus: rapid clustering in rclus package.

score_col

The column name in a data frame as input for clustering.

iter.max

The maximum number of iterations.

Value

Hospital rating stars 1, 2, 3, 4, and 5. star 5 indicates the best hospital in USA.

See Also

rating.data.frame


huangrh/rclus documentation built on May 24, 2019, 4:05 a.m.