Skip to contents

Use the apollo package to predict the choice based on the fitted models

Usage

predict(
  expected_los = 0,
  clinical_situation = 0,
  age = 0,
  frailty = 0,
  life_expectancy = 0,
  suffering = 0,
  disability_cardiovascular = 0,
  disability_pulmonary = 0,
  disability_renal = 0,
  disability_neurological = 0,
  disability_gastrointestinal = 0,
  family_values = 0,
  type = "binary",
  group = "aggregate"
)

Arguments

expected_los

Expected additional ICU length of stay. Use one of the following (Default = 0):

ValueDescription
0A couple of weeks
1A couple of months
clinical_situation

Clinical Situation. Use one of the following (Default = 0):

ValueDescription
0Deterioration
1No improvement
age

Age. Use one of the following (Default = 0):

ValueDescription
040 years
155 years
270 years
385 years
frailty

Frailty at hospital admission. Use one of the following (Default = 0):

ValueDescription
0Clinical Frailty Score: 1-2
1Clinical Frailty Score: 3-4
2Clinical Frailty Score: 5-6
life_expectancy

Life expectancy (pre-admission). Use one of the following (Default = 0):

ValueDescription
06 - 12 months
11 - 5 years
1> 5 years
suffering

Burden of Suffering. Use one of the following (Default = 0):

ValueDescription
0Limited
1Severe
disability_cardiovascular

Expected cardiovascular impairment after discharge. Use one of the following (Default = 0):

ValueDescription
0NYHA I
1NYHA II
2NYHA III
3NYHA IV
disability_pulmonary

Expected pulmonary impairment after discharge. Use one of the following (Default = 0):

ValueDescription
0No impairment
1Moderate impairment
2Severe impairment
disability_renal

Expected renal impairment after discharge. Use one of the following (Default = 0):

ValueDescription
0No impairment (GFR > 30)
1Pre-dialysis (GFR 15-30)
2Dialysis dependent (GFR < 15)
disability_neurological

Expected neurological impairment after discharge. Use one of the following (Default = 0):

ValueDescription
0mRS 0-1
1mRS 2-3
2mRS 4-5
disability_gastrointestinal

Expected gastrointestinal impairment after discharge. Use one of the following (Default = 0):

ValueDescription
0Without tube-feeding
1Tube-feeding dependent
family_values

Patient or Family Values. Use one of the following (Default = 0):

ValueDescription
0Expected future physical disabilities are possibly acceptable
1Expected future physical disabilities are most likely unacceptable
type

Either "binary" or "multinomial". Default: "binary".

group

Either "aggregate", "aumc", "olvg", "intensivists" or "fellows". Default: "aggregate"

Value

Returns tibble containing the prediction.

Examples

baitlist::predict(family_values = 1)
#>     withdraw  continue
#> 1 0.05115562 0.9488444
baitlist::predict(
  type = "multinomial",
  expected_los = 1,
  clinical_situation = 1,
  age = 1, frailty = 1,
  life_expectancy = 1,
  suffering = 1,
  disability_cardiovascular = 1,
  disability_pulmonary = 1,
  disability_renal = 1,
  disability_neurological = 1,
  disability_gastrointestinal = 1,
  family_values = 1
  )
#>    withdraw timelimited  continue
#> 1 0.6879451    0.252024 0.0600309