# Cox regression

You have to refer to this web page if you use this information elsewhere. Exactly how you refer to this page depends on your situation (or the journal you are submitting to). An example might be:
Ronny Gunnarsson. "Cox regression" [on INFOVOICE.SE]. Available on: https://infovoice.se/cox-regression/. Information was retrieved August 14, 2024.
This web-page provides an introduction to Cox regression. Reading this will give you an understanding of Cox regression and how to use it.

(Denna webbsida är under konstruktion. Vi beklagar olägenheten.)

# Prerequisites (assumptions)

## Introduction to pre-requisites (assumptions)

Cox regression is usually labelled “Cox proportional hazards regression”. “Proportional hazards” means that the increased risk for the event (caused by an independent variable) is constant over time. The risk caused by an independent variable should not increase or decrease over time. This means the relation between an independent variable and the event should be linear.

## Testing if prerequisites (assumptions) are fulfilled

The assumptions should be tested for in some way for each independent variable. The easiest way is to create a Kaplan-Meier curve for each independent variable and simply look at the graph. It will tell you if there is a reasonably linear effect of the independent variable or if the effect seems to shrink or increase by time.

There are different statistical tests to investigate this. These tests may be insufficient to discover problems in small data sets and oversensitive in large data sets. Below are two videos showing an example of how to test the main assumption using the statistical software SPSS:

Testing assumptions in the software R is described here: http://www.sthda.com/english/wiki/cox-model-assumptions

• http://www.mwsug.org/proceedings/2006/stats/MWSUG-2006-SD08.pdf
• http://www.stat.ubc.ca/~rollin/teach/643w04/lec/node69.html
• http://www.ats.ucla.edu/stat/examples/asa/test_proportionality.htm
• https://www.sciencedirect.com/science/article/pii/S0883944111002450
• https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1445-2197.2007.04405.x
• https://www.theanalysisfactor.com/assumptions-cox-regression/

# References

(Detta avsnitt är under konstruktion. Vi beklagar olägenheten.)

You have to refer to this web page if you use this information elsewhere. Exactly how you refer to this page depends on your situation (or the journal you are submitting to). An example might be:
Ronny Gunnarsson. "Cox regression" [on INFOVOICE.SE]. Available on: https://infovoice.se/cox-regression/. Information was retrieved August 14, 2024.