smr_model: Logistic Regression model for HSMR

View source: R/smr_model.R

smr_modelR Documentation

Logistic Regression model for HSMR

Description

Carries out risk-adjustment for HSMR data.

Usage

smr_model(smr01, base_start, base_end, index = "Q")

Arguments

smr01

Input tibble for admissions, see details.

base_start

The beginning of the time period for data that is run through the logistic regression model.

base_end

The end of the time period for data that is run through the logistic regression model.

index

To define whether data produced are to be quarterly or annual.

Details

smr_model expects a tibble of data extracted from SMR01 that has already been through smr_wrangling and then smr_pmorbs. This is the third step of a four-step process. The final step is smr_data. smr_model returns the SMR01 data with a probability of death within 30 days of admission appended on to the file.


Public-Health-Scotland/hsmr documentation built on June 24, 2024, 1:48 a.m.