Skip to main content
The Deno 2 Release Candidate is here
Learn more

Quality-Adjusted Life Year Gain By Tobacco Cessation

Call function

parameters

  • age: patient’s age
  • gender: patients gender (male: 0, female: 1)
  • smokeyear: number of years patient has been smoking
  • cigpday: number of cigateres patient smokes per day
  • quityear: how many years ago patient has quit smoking (0 for current smokers)

example

qalyValue({age:65,gender:1,smokeyear:30,cigpday:20,quityear:0}) #output: 6.142667499999999