getMedicareEarnings: Return the _Medicare_ earnings data set.

Description Usage Arguments Details Value Examples

View source: R/statement.R

Description

Taxes under the Federal Insurance Contributions Act (FICA) are composed of the old-age, survivors, and disability insurance taxes, also known as social security taxes, and the hospital insurance tax, also known as Medicare taxes. Different rates apply for these taxes. The amount an employee pays in FICA tax is capped at the Benefit and Contribution Base which can change from year to year according to the Average Wage Index (AWI). The data set returned will contain the actual values for years that the government listed at the time this package was built. For any year beyond that, an estimate is returned.

Usage

1
getMedicareEarnings(statement = NULL, endYear = NULL, predict = FALSE)

Arguments

statement

the Social Security Statement Object returned from readStatement

endYear

the last year to include in the returned data set

predict

if TRUE, use a MARS model to predict future earnings. Otherwise replicate the last know earnings value (default)

Details

The endYear is the last year of Medicare earnings to return. If no endYear is given, only the Medicare earnings contained in the input Social Security Statement object are returned.

Value

the Medicare earnings data set

Examples

1
2
getMedicareEarnings(statement = myStatement, endYear = 2025)
getMedicareEarnings(statement = myStatement)

twjacobs/oasdir documentation built on July 28, 2019, 5:51 a.m.