subgroup: Prepare the subset of the data in a measure group for CMS...

View source: R/group_data.R

subgroupR Documentation

Prepare the subset of the data in a measure group for CMS star rating

Description

Prepare the subset of the data table and weight table in each measure group in CMS Hospital Compare star rating. In addition, the hospital is removed if the hospital didn't report any data in the group.

Usage

subgroup(object, groups = NULL)

Arguments

object

A mstbl object,which contains the measure score table and weight table.

groups

A vector of group names. The default is null and it will automatically use all of the groups in the object.

Value

A list containing a sublist for each measure group. Each has a stadardized measure score table and a weight table.


huangrh/rstarating documentation built on March 28, 2022, 6:44 p.m.