rating.data.frame: S3 Method of Rating

Description Usage Arguments Value See Also

View source: R/rating.R

Description

Hospital star rating from wisorized summary scores in a data frame.

Usage

1
2
3
## S3 method for class 'data.frame'
rating(x, method = c("rclus2", "rclus", "kmeans", "na"),
  score_col = NULL, iter.max = 1000)

Arguments

x

A data frame containing 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 serving as input for clustering. If null, it will be set according to the method: "rclus2" uses "sum_score" and all other methods use "sum_score_win".

iter.max

The maximum number of iterations.

report_indicator

The indicator 0 and 1. "1" indicates the clustering uses the rows only with a report_indicator of 1 from the input data frame.

Value

A data.frame containing the hospital rating stars 1, 2, 3, 4, and 5. star 5 indicates the best hospital in USA.

See Also

rating


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