average_medicare_payments_statistics: Average Medicare Payments Statistics

View source: R/statistics_of_medicare_payments.R

average_medicare_payments_statisticsR Documentation

Average Medicare Payments Statistics

Description

This function is to calculate the statistics over all of the DRG codes for average medicare payments of data from Centers for Medicare & Medical Services.

Usage

average_medicare_payments_statistics(df, statistics)

Arguments

df

a dataframe of data from Centers for Medicare & Medical Services. This dataframe must contain DRG codes and average medicare payments data. And the column names of these two variables should be "DRG.Definition" and "Average.Medicare.Payments".

statistics

a character string specifying the type of statistics, must be one of "mean","median" or "sd".

Value

a dataframe with DRG codes and statistics for average medicare payments.

Examples

data(sample_data)

average_medicare_payments_statistics(drg_data, 'sd')



yinglia/A-Simple-R-Package documentation built on April 17, 2022, 12:08 a.m.