Efficient estimation of the risk of a disease by quantile‐categories of a key predictor variable using generalized additive models