A logistic regression based extension of the TDT for continuous and categorical traits