generate.riskgp.vector: Functions for generating the data needed for adjustment.

View source: R/risk.adjust.R

generate.riskgp.vectorR Documentation

Functions for generating the data needed for adjustment.

Description

Creates a number of risk groups from a regression model. Higher risk groups are more likely to score highly in the model, and vice versa.

Usage

generate.riskgp.vector(
  input.df,
  model,
  n.groups,
  riskgp.level.name.suffix = ""
)

Arguments

input.df

A data.frame with the columns from the regression model.

model

The regression model, should be compatible with base::predict

n.groups

Number of groups to generate.

riskgp.level.name.suffix

Suffix to place after the number of the risk group (default: ”)

Value

A vector of risk groups in the same order as the rows of input.df. Higher risk groups are more likely to score highly in the model, and vice versa. Groups will be names e.g. '01' + riskgp.level.name.suffix


mattmoo/daohtools documentation built on Feb. 5, 2023, 5:38 a.m.