I am running a logit regression where the outcome variable is binary. I am interested in checking, graphically, whether the relationship between a given predictor and my dependent variable is (more or less linear).

I understand that the

**logit**of the outcome ought to be linear, not the dependent variable per se. However, I do not know how to graph the logit of Y against a given X (say, the variable "age").

Also! I am looking for another way to do this without having to use the command "lowess." Any help will be so much appreciated. Thanks!

Best