Appropriate Test for Binary Dependent Variable and Continuous Independent Variable I have a dataset of observations of hawks foraging. I am trying to examine the relationship between height of perch used (continuous independent variable, integers of 0 through 10) and outcome of a foraging attempt (binary: success or fail). I'd like to answer the question, are hawks more successful at shorter or taller perches.
Would it be appropriate to use a linear regression or is there something more apropos?

Can you reframe your question as, "Are perch heights different between successful and unsuccessful foraging attempts?"  In this case, you could compare the two groups, success and failure, with a t-test.  By using a two-tailed t-test, you are making no assumptions of the direction of the difference, higher or lower could either be more successful.
The null hypothesis in this case is that heights do not differ between successful and failed foraging attempts, and the alternative hypothesis that perch height does differ between groups.
