Your model so far
MaxHeartRate = g(?)(1, Age, ExerciseAngina, STDepression)
The link function g() determines how the linear combination of predictors relates to the expected response.
Choose the Link Function
For predicting maximum heart rate (a continuous value typically 60-200 bpm), which link function is most appropriate?
Click on a card to select it.
Identity
g(μ) = μ
The simplest link: predictions are directly on the response scale.
Use when: Response can be any real number (positive, negative, or zero)
Log
g(μ) = ln(μ)
Ensures predictions are always positive. Models multiplicative effects.
Use when: Response must be strictly positive (counts, concentrations)
Logit
g(μ) = ln(μ/(1-μ))
Maps probabilities (0-1) to the real line. The "log-odds" transformation.
Use when: Response is a probability or proportion
Inverse
g(μ) = 1/μ
Creates reciprocal relationship between predictors and response.
Use when: Modelling rates or times (Gamma regression)
Link Function Selected
With the identity link, your model equation becomes:
E[MaxHeartRate] = β0 + β1·Age + β2·ExerciseAngina + β3·STDepression
The identity link means predicted heart rate equals the linear combination directly - no transformation needed.
This is the natural choice for continuous outcomes that can take any value.