drgplot: drgplot

Description Usage Arguments Value Examples

View source: R/DataScienceLab2.R

Description

The function drgplot makes a boxplot for either the average Medicare payments, the average total payment, or the average covered charges by DRG code.

Usage

1
drgplot(df, a)

Arguments

df

a dataframe, use the dataset in the package drgdata2

a

a string name for the payment variable in the datafram. Choose from Average Medicare payments, Average Total Payment, or Average Covered Charges

Value

drgplot returns a boxlpot of one of the payment variables by DRG

Examples

1
drgplot(drgdata2, "Average Total Payments")

yoz2009/DataScienceLab2 documentation built on Jan. 1, 2021, 1:46 p.m.