I have a slope data classified based on weather an area is vulnerable to erosion. Below is an example: vulnerability is a categorical variable (yes/no) and slope is a continuous variable ranging from 0 to 90.

I want to know if the slope of vulnerable areas is significantly different from that of non-vulnerable areas. At first, I performed unpaired two-samples t-test by classifying slope data into two groups based on vulnerability. Then, while I was looking into statistics for other dataset, I realized this dataset might be interpreted in a different way: one continuous variable (i.e., slope) and one categorical variable (i.e., vulnerable or non-vulnerable). If it is correct, ANOVA or logistic regression can be used? Also, I'm wondering which analysis (two continuous variables VS one categorical and one continuous variables) is more appropriate in my case. Thanks.

More Jeongho Han's questions See All
Similar questions and discussions